1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6followlocation 7</keywords> 8</info> 9# 10# Server-side 11<reply> 12<data> 13HTTP/1.1 302 OK 14Location: http://example.net/tes t case=/6620002 15Date: Thu, 09 Nov 2010 14:49:00 GMT 16Content-Length: 0 17 18</data> 19<data2> 20HTTP/1.1 200 OK 21Location: this should be ignored 22Date: Thu, 09 Nov 2010 14:49:00 GMT 23Content-Length: 5 24 25body 26</data2> 27<datacheck> 28HTTP/1.1 302 OK 29Location: http://example.net/tes t case=/6620002 30Date: Thu, 09 Nov 2010 14:49:00 GMT 31Content-Length: 0 32 33HTTP/1.1 200 OK 34Location: this should be ignored 35Date: Thu, 09 Nov 2010 14:49:00 GMT 36Content-Length: 5 37 38body 39</datacheck> 40</reply> 41 42# 43# Client-side 44<client> 45<server> 46http 47</server> 48 <name> 49HTTP redirect with whitespace in absolute Location: URL 50 </name> 51 <command> 52http://example.com/please/gimme/662 -L -x http://%HOSTIP:%HTTPPORT 53</command> 54<features> 55proxy 56</features> 57</client> 58 59# 60# Verify data after the test has been "shot" 61<verify> 62<protocol> 63GET http://example.com/please/gimme/662 HTTP/1.1 64Host: example.com 65User-Agent: curl/%VERSION 66Accept: */* 67Proxy-Connection: Keep-Alive 68 69GET http://example.net/tes%20t%20case=/6620002 HTTP/1.1 70Host: example.net 71User-Agent: curl/%VERSION 72Accept: */* 73Proxy-Connection: Keep-Alive 74 75</protocol> 76</verify> 77</testcase> 78