HTTP HTTP GET HTTP proxy followlocation # Server-side HTTP/1.1 301 This is a weirdo text message swsbounce Server: test-server/fake Location: //somewhere.example.com/reply/1314 Content-Length: 32 Connection: close Redirect to the same URL again! HTTP/1.1 200 okidoki Server: test-server/fake Content-Length: 4 Connection: close moo HTTP/1.1 301 This is a weirdo text message swsbounce Server: test-server/fake Location: //somewhere.example.com/reply/1314 Content-Length: 32 Connection: close HTTP/1.1 200 okidoki Server: test-server/fake Content-Length: 4 Connection: close moo # Client-side http HTTP Location: following a // prefixed url http://firstplace.example.com/want/1314 -L -x http://%HOSTIP:%HTTPPORT proxy # Verify data after the test has been "shot" GET http://firstplace.example.com/want/1314 HTTP/1.1 Host: firstplace.example.com User-Agent: curl/%VERSION Accept: */* Proxy-Connection: Keep-Alive GET http://somewhere.example.com/reply/1314 HTTP/1.1 Host: somewhere.example.com User-Agent: curl/%VERSION Accept: */* Proxy-Connection: Keep-Alive