1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6followlocation 7HTTP proxy 8</keywords> 9</info> 10# Server-side 11<reply> 12<data> 13HTTP/1.1 301 This is a weirdo text message 14Date: Tue, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake 16Location: data/%TESTNUMBER0002.txt?coolsite=yes 17Connection: close 18 19This server reply is for testing a simple Location: following 20 21</data> 22<data2> 23HTTP/1.1 200 Followed here fine swsclose 24Date: Tue, 09 Nov 2010 14:49:00 GMT 25Server: test-server/fake 26Content-Length: 52 27 28If this is received, the location following worked 29 30</data2> 31<datacheck> 32HTTP/1.1 301 This is a weirdo text message 33Date: Tue, 09 Nov 2010 14:49:00 GMT 34Server: test-server/fake 35Location: data/%TESTNUMBER0002.txt?coolsite=yes 36Connection: close 37 38HTTP/1.1 200 Followed here fine swsclose 39Date: Tue, 09 Nov 2010 14:49:00 GMT 40Server: test-server/fake 41Content-Length: 52 42 43If this is received, the location following worked 44 45</datacheck> 46</reply> 47 48# Client-side 49<client> 50<server> 51http 52</server> 53<name> 54HTTP Location: following over HTTP proxy 55</name> 56<command> 57http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -x %HOSTIP:%HTTPPORT 58</command> 59<features> 60proxy 61</features> 62</client> 63 64# Verify data after the test has been "shot" 65<verify> 66<protocol> 67GET http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER HTTP/1.1 68Host: %HOSTIP:%HTTPPORT 69User-Agent: curl/%VERSION 70Accept: */* 71Proxy-Connection: Keep-Alive 72 73GET http://%HOSTIP:%HTTPPORT/want/data/%TESTNUMBER0002.txt?coolsite=yes HTTP/1.1 74Host: %HOSTIP:%HTTPPORT 75User-Agent: curl/%VERSION 76Accept: */* 77Proxy-Connection: Keep-Alive 78 79</protocol> 80</verify> 81</testcase> 82