HTTP HTTPS HTTP proxy HTTP Basic auth followlocation # Server-side HTTP/1.1 200 OK HTTP/1.1 302 Found Location: http://example.com:%HTTPSPORT/%TESTNUMBER0002 Content-Length: 0 HTTP/1.1 200 OK Content-Length: 2 OK # Client-side SSL proxy https http-proxy HTTPS to HTTP redirect on same host and port without auth --insecure --location --user user:secret --proxy %HOSTIP:%PROXYPORT https://example.com:%HTTPSPORT/%TESTNUMBER # Verify data after the test has been "shot" CONNECT example.com:%HTTPSPORT HTTP/1.1 Host: example.com:%HTTPSPORT User-Agent: curl/%VERSION Proxy-Connection: Keep-Alive GET http://example.com:%HTTPSPORT/%TESTNUMBER0002 HTTP/1.1 Host: example.com:%HTTPSPORT User-Agent: curl/%VERSION Accept: */* Proxy-Connection: Keep-Alive GET /%TESTNUMBER HTTP/1.1 Host: example.com:%HTTPSPORT Authorization: Basic %b64[user:secret]b64% User-Agent: curl/%VERSION Accept: */*