HTTP
HTTP GET
HTTP CONNECT
HTTP proxy
proxytunnel
HTTP/1.1 407 Proxy Authentication Required
Proxy-Authenticate: Special realm="none", nonce="abc123"
Content-Length: 13
Transfer-Encoding: chunked
Magic-special: true
some content
http
proxy
HTTP CONNECT with proxy returning Content-Length and chunked
http://test.example --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -sS
# Verify data after the test has been "shot"
CONNECT test.example:80 HTTP/1.1
Host: test.example:80
User-Agent: curl/%VERSION
Proxy-Connection: Keep-Alive
56