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