1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP proxy 7 followlocation 8 </keywords> 9 </info> 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 302 This is a weirdo text message 14 Connection: close 15 Location: http:///foo.example.com/want/11410001 16 17 This server reply is for testing 18 </data> 19 <data1> 20 HTTP/1.1 200 hello 21 Connection: close 22 Content-Length: 4 23 24 hej 25 </data1> 26 <datacheck> 27 HTTP/1.1 302 This is a weirdo text message 28 Connection: close 29 Location: http:///foo.example.com/want/11410001 30 31 HTTP/1.1 200 hello 32 Connection: close 33 Content-Length: 4 34 35 hej 36 </datacheck> 37 </reply> 38 39 # Client-side 40 <client> 41 <server> 42 http 43 </server> 44 <name> 45 HTTP 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> 58 GET http://%HOSTIP:%HTTPPORT/want/1141 HTTP/1.1 59 Host: %HOSTIP:%HTTPPORT 60 Accept: */* 61 Proxy-Connection: Keep-Alive 62 63 GET http://foo.example.com/want/11410001 HTTP/1.1 64 Host: foo.example.com 65 Accept: */* 66 Proxy-Connection: Keep-Alive 67 68 </protocol> 69 </verify> 70 </testcase> 71