1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6redirect_url 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/10800002.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> 30HTTP Location: on two URLs 'redirect_url' check 31 </name> 32 <command> 33http://%HOSTIP:%HTTPPORT/we/want/our/1080 http://%HOSTIP:%HTTPPORT/we/want/our/1080 -w '%{redirect_url}\n' 34</command> 35</client> 36 37# Verify data after the test has been "shot" 38<verify> 39<strip> 40^User-Agent:.* 41</strip> 42<protocol> 43GET /we/want/our/1080 HTTP/1.1 44Host: %HOSTIP:%HTTPPORT 45Accept: */* 46 47GET /we/want/our/1080 HTTP/1.1 48Host: %HOSTIP:%HTTPPORT 49Accept: */* 50 51</protocol> 52<stdout> 53HTTP/1.1 301 This is a weirdo text message swsclose 54Location: data/10800002.txt?coolsite=yes 55Content-Length: 62 56Connection: close 57 58This server reply is for testing a simple Location: following 59http://%HOSTIP:%HTTPPORT/we/want/our/data/10800002.txt?coolsite=yes 60HTTP/1.1 301 This is a weirdo text message swsclose 61Location: data/10800002.txt?coolsite=yes 62Content-Length: 62 63Connection: close 64 65This server reply is for testing a simple Location: following 66http://%HOSTIP:%HTTPPORT/we/want/our/data/10800002.txt?coolsite=yes 67</stdout> 68</verify> 69</testcase> 70