--TEST--
-proxy - send proxy headers for a proxy request
+client proxy - send proxy headers for a proxy request
--SKIPIF--
<?php
include "skipif.inc";
$c = new http\Client;
$r = new http\Client\Request("GET", "http://www.example.com/");
$r->setOptions(array(
- "timeout" => 3,
+ "timeout" => 10,
"proxytunnel" => true,
"proxyheader" => array("Hello" => "there!"),
"proxyhost" => "localhost",
echo $e;
}
echo $c->getResponse()->getBody();
- unset($r, $client);
});
?>
User-Agent: PECL_HTTP/%s PHP/%s libcurl/%s
Proxy-Connection: Keep-Alive
Hello: there!
-Content-Length: 0
===DONE===