1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP proxy 7followlocation 8</keywords> 9</info> 10# Server-side 11<reply> 12<data> 13HTTP/1.1 302 This is a weirdo text message 14Connection: close 15Location: http:///foo.example.com/want/11410001 16 17This server reply is for testing 18</data> 19<data1> 20HTTP/1.1 200 hello 21Connection: close 22Content-Length: 4 23 24hej 25</data1> 26<datacheck> 27HTTP/1.1 302 This is a weirdo text message 28Connection: close 29Location: http:///foo.example.com/want/11410001 30 31HTTP/1.1 200 hello 32Connection: close 33Content-Length: 4 34 35hej 36</datacheck> 37</reply> 38 39# Client-side 40<client> 41<server> 42http 43</server> 44 <name> 45HTTP redirect to http:/// (three slashes!) 46 </name> 47 <command> 48%HOSTIP:%HTTPPORT/want/1141 -L -x http://%HOSTIP:%HTTPPORT 49</command> 50</client> 51 52# Verify data after the test has been "shot" 53<verify> 54<strip> 55^User-Agent:.* 56</strip> 57<protocol> 58GET http://%HOSTIP:%HTTPPORT/want/1141 HTTP/1.1 59Host: %HOSTIP:%HTTPPORT 60Accept: */* 61Proxy-Connection: Keep-Alive 62 63GET http://foo.example.com/want/11410001 HTTP/1.1 64Host: foo.example.com 65Accept: */* 66Proxy-Connection: Keep-Alive 67 68</protocol> 69</verify> 70</testcase> 71