1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP proxy 6--location 7Authorization 8Cookie 9</keywords> 10</info> 11 12# 13# Server-side 14<reply> 15<data> 16HTTP/1.1 301 redirect 17Date: Tue, 09 Nov 2010 14:49:00 GMT 18Server: test-server/fake 19Content-Length: 0 20Connection: close 21Content-Type: text/html 22Location: http://firsthost.com:9999/a/path/%TESTNUMBER0002 23 24</data> 25<data2> 26HTTP/1.1 200 OK 27Date: Tue, 09 Nov 2010 14:49:00 GMT 28Server: test-server/fake 29Content-Length: 4 30Connection: close 31Content-Type: text/html 32 33hey 34</data2> 35 36<datacheck> 37HTTP/1.1 301 redirect 38Date: Tue, 09 Nov 2010 14:49:00 GMT 39Server: test-server/fake 40Content-Length: 0 41Connection: close 42Content-Type: text/html 43Location: http://firsthost.com:9999/a/path/%TESTNUMBER0002 44 45HTTP/1.1 200 OK 46Date: Tue, 09 Nov 2010 14:49:00 GMT 47Server: test-server/fake 48Content-Length: 4 49Connection: close 50Content-Type: text/html 51 52hey 53</datacheck> 54 55</reply> 56 57# 58# Client-side 59<client> 60<features> 61proxy 62</features> 63<server> 64http 65</server> 66<name> 67HTTP with custom auth and cookies redirected to HTTP on a diff port 68</name> 69<command> 70-x http://%HOSTIP:%HTTPPORT http://firsthost.com -L -H "Authorization: Basic am9lOnNlY3JldA==" -H "Cookie: userpwd=am9lOnNlY3JldA==" 71</command> 72</client> 73 74# 75# Verify data after the test has been "shot" 76<verify> 77<protocol> 78GET http://firsthost.com/ HTTP/1.1 79Host: firsthost.com 80User-Agent: curl/%VERSION 81Accept: */* 82Proxy-Connection: Keep-Alive 83Authorization: Basic am9lOnNlY3JldA== 84Cookie: userpwd=am9lOnNlY3JldA== 85 86GET http://firsthost.com:9999/a/path/%TESTNUMBER0002 HTTP/1.1 87Host: firsthost.com:9999 88User-Agent: curl/%VERSION 89Accept: */* 90Proxy-Connection: Keep-Alive 91 92</protocol> 93</verify> 94</testcase> 95