test2085 (981B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 followlocation 6 </keywords> 7 </info> 8 9 # Server-side 10 <reply> 11 <data nocheck="yes"> 12 HTTP/1.1 302 OK swsclose 13 Location: data2.html/%TESTNUMBER0002 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Connection: close 16 17 </data> 18 <data2 nocheck="yes"> 19 HTTP/1.1 200 OK swsclose 20 Location: this should be ignored 21 Date: Tue, 09 Nov 2010 14:49:00 GMT 22 Connection: close 23 24 body 25 </data2> 26 </reply> 27 28 # Client-side 29 <client> 30 <server> 31 http 32 </server> 33 34 <name> 35 Pre-request callback for HTTP with location following 36 </name> 37 <tool> 38 lib2082 39 </tool> 40 41 <command> 42 %HOSTIP:%HTTPPORT/%TESTNUMBER#redir 43 </command> 44 </client> 45 46 # Verify data after the test has been "shot" 47 <verify> 48 <stripfile> 49 s/^Local port = \d+/Local port = stripped/ 50 </stripfile> 51 <stdout> 52 Connected to %HOSTIP 53 Connected from %CLIENTIP 54 Remote port = %HTTPPORT 55 Local port = stripped 56 Returning = 0 57 Connected to %HOSTIP 58 Connected from %CLIENTIP 59 Remote port = %HTTPPORT 60 Local port = stripped 61 Returning = 0 62 </stdout> 63 </verify> 64 </testcase>