1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 followlocation 7 </keywords> 8 </info> 9 <reply> 10 <data> 11 HTTP/1.1 302 OK swsclose 12 Location: 550002 13 Date: Thu, 09 Nov 2010 14:50:00 GMT 14 Connection: close 15 16 </data> 17 <data2> 18 HTTP/1.1 200 OK swsclose 19 Date: Thu, 09 Nov 2010 14:50:00 GMT 20 Connection: close 21 22 body 23 </data2> 24 <datacheck> 25 HTTP/1.1 302 OK swsclose 26 Location: 550002 27 Date: Thu, 09 Nov 2010 14:50:00 GMT 28 Connection: close 29 30 HTTP/1.1 200 OK swsclose 31 Date: Thu, 09 Nov 2010 14:50:00 GMT 32 Connection: close 33 34 body 35 </datacheck> 36 </reply> 37 38 <client> 39 <server> 40 http 41 </server> 42 <name> 43 HTTP follow redirect with single slash in path 44 </name> 45 <command> 46 http://%HOSTIP:%HTTPPORT/55 -L 47 </command> 48 </client> 49 50 <verify> 51 <strip> 52 ^User-Agent:.* 53 </strip> 54 <protocol> 55 GET /55 HTTP/1.1 56 Host: %HOSTIP:%HTTPPORT 57 Accept: */* 58 59 GET /550002 HTTP/1.1 60 User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3 61 Host: %HOSTIP:%HTTPPORT 62 Accept: */* 63 64 </protocol> 65 </verify> 66 </testcase> 67