include "helper/server.inc";
-echo "Test\n";var_dump((new http\Client)->getAvailableOptions());
+echo "Test\n";
server("proxy.inc", function($port, $stdin, $stdout, $stderr) {
echo "Server on port $port\n";
Test
Server on port %d
CONNECT www.example.com:80 HTTP/1.1
+Hello: there!
Host: www.example.com:80
-User-Agent: PECL_HTTP/%s PHP/%s libcurl/%s
Proxy-Connection: Keep-Alive
-Hello: there!
+User-Agent: PECL_HTTP/%s PHP/%s libcurl/%s
+
===DONE===