HTTP
HTTP proxy
http_proxy
# Server-side
HTTP/1.1 407 Denied
HTTP/1.1 301 redirect
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 4
Content-Type: text/html
Location: https://another.example/%TESTNUMBER0002
boo
# Client-side
proxy
http
https
proxy creds via env, cross-scheme redirect, --location-trusted
http_proxy=http://user:secret@%HOSTIP:%HTTPPORT
https_proxy=https://%HOSTIP:%HTTPSPORT/
http://somewhere.example/ --location-trusted --proxy-insecure
# Verify data after the test has been "shot"
GET http://somewhere.example/ HTTP/1.1
Host: somewhere.example
Proxy-Authorization: Basic %b64[user:secret]b64%
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive
CONNECT another.example:443 HTTP/1.1
Host: another.example:443
User-Agent: curl/%VERSION
Proxy-Connection: Keep-Alive
7