X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fclient020.phpt;fp=tests%2Fclient020.phpt;h=29a6ed24699c1a35b003a1f7b5569409934511ad;hb=bc088ae2915ef8e0d2d232bbbb2d091f5893d3c6;hp=0000000000000000000000000000000000000000;hpb=597319011750ceaf7e156fe8bc03574e7f4e399b;p=m6w6%2Fext-http diff --git a/tests/client020.phpt b/tests/client020.phpt new file mode 100644 index 0000000..29a6ed2 --- /dev/null +++ b/tests/client020.phpt @@ -0,0 +1,42 @@ +--TEST-- +proxy - don't send proxy headers for a standard request +--SKIPIF-- + +--FILE-- +setOptions(array( + "timeout" => 3, + "proxyheader" => array("Hello" => "there!"), + )); + try { + $c->enqueue($r)->send(); + } catch (Exception $e) { + echo $e; + } + echo $c->getResponse()->getBody(); + unset($r, $client); +}); + +?> +===DONE=== +--EXPECTF-- +Test +Server on port %d +GET / HTTP/1.1 +User-Agent: PECL_HTTP/%s PHP/%s libcurl/%s +Host: localhost:%d +Accept: */* +Content-Length: 0 +===DONE===