2 client proxy - don't send proxy headers for a standard request
11 include "helper/server.inc";
15 server("proxy.inc", function($port, $stdin, $stdout, $stderr) {
16 echo "Server on port $port\n";
18 $r = new http\Client\Request("GET", "http://localhost:$port/");
21 "proxyheader" => array("Hello" => "there!"),
24 $c->enqueue($r)->send();
25 } catch (Exception $e) {
28 echo $c->getResponse()->getBody();
40 User-Agent: PECL_HTTP/%s PHP/%s libcurl/%s