HTTP HTTP GET HTTP CONNECT HTTP proxy proxytunnel # Server-side # this is returned first since we get no proxy-auth HTTP/1.1 400 Bad request Connection: close HTTP/1.1 400 Bad request Connection: close # Client-side http proxy HTTP CONNECT with proxy returning 400 and closing 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 curl: (56) CONNECT tunnel failed, response 400