1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6referer 7followlocation 8--write-out 9</keywords> 10</info> 11 12# Server-side 13<reply> 14<data nocheck="yes"> 15HTTP/1.1 301 This is a weirdo text message swsclose 16Location: data/%TESTNUMBER0002.txt?coolsite=yes 17Content-Length: 62 18Connection: close 19 20This server reply is for testing a simple Location: following 21</data> 22</reply> 23 24# Client-side 25<client> 26<server> 27http 28</server> 29 <name> 30Automatic referrer credential and anchor stripping check 31 </name> 32 <command> 33http://user:pass@%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER#anchor --location --referer ';auto' --write-out '%{referer}\n' 34</command> 35</client> 36 37# Verify data after the test has been "shot" 38<verify> 39<errorcode> 4052 41</errorcode> 42<protocol> 43GET /we/want/our/%TESTNUMBER HTTP/1.1 44Host: %HOSTIP:%HTTPPORT 45Authorization: Basic dXNlcjpwYXNz 46User-Agent: curl/%VERSION 47Accept: */* 48 49GET /we/want/our/data/%TESTNUMBER0002.txt?coolsite=yes HTTP/1.1 50Host: %HOSTIP:%HTTPPORT 51Authorization: Basic dXNlcjpwYXNz 52User-Agent: curl/%VERSION 53Accept: */* 54Referer: http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER 55 56</protocol> 57<stdout> 58HTTP/1.1 301 This is a weirdo text message swsclose 59Location: data/%TESTNUMBER0002.txt?coolsite=yes 60Content-Length: 62 61Connection: close 62 63http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER 64</stdout> 65</verify> 66</testcase> 67