HTTP
HTTP GET
HTTP proxy
followlocation
# Server-side
HTTP/1.1 302 This is a weirdo text message
Connection: close
Location: http:///foo.example.com/want/11410001
This server reply is for testing
HTTP/1.1 200 hello
Connection: close
Content-Length: 4
hej
HTTP/1.1 302 This is a weirdo text message
Connection: close
Location: http:///foo.example.com/want/11410001
HTTP/1.1 200 hello
Connection: close
Content-Length: 4
hej
# Client-side
http
HTTP redirect to http:/// (three slashes!)
%HOSTIP:%HTTPPORT/want/1141 -L -x http://%HOSTIP:%HTTPPORT
proxy
# Verify data after the test has been "shot"
GET http://%HOSTIP:%HTTPPORT/want/1141 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive
GET http://foo.example.com/want/11410001 HTTP/1.1
Host: foo.example.com
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive