1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP proxy 7HTTP proxy Basic auth 8followlocation 9--location-trusted 10</keywords> 11</info> 12 13# 14# Server-side 15<reply> 16<data> 17HTTP/1.1 302 OK 18Date: Tue, 09 Nov 2010 14:49:00 GMT 19Server: test-server/fake swsclose 20Content-Type: text/html 21Funny-head: yesyes 22Location: http://goto.second.host.now/%TESTNUMBER0002 23Content-Length: 8 24Connection: close 25 26contents 27</data> 28<data2> 29HTTP/1.1 200 OK 30Date: Tue, 09 Nov 2010 14:49:00 GMT 31Server: test-server/fake swsclose 32Content-Type: text/html 33Funny-head: yesyes 34Content-Length: 9 35 36contents 37</data2> 38 39<datacheck> 40HTTP/1.1 302 OK 41Date: Tue, 09 Nov 2010 14:49:00 GMT 42Server: test-server/fake swsclose 43Content-Type: text/html 44Funny-head: yesyes 45Location: http://goto.second.host.now/%TESTNUMBER0002 46Content-Length: 8 47Connection: close 48 49HTTP/1.1 200 OK 50Date: Tue, 09 Nov 2010 14:49:00 GMT 51Server: test-server/fake swsclose 52Content-Type: text/html 53Funny-head: yesyes 54Content-Length: 9 55 56contents 57</datacheck> 58</reply> 59 60# 61# Client-side 62<client> 63<server> 64http 65</server> 66<name> 67HTTP, proxy, site+proxy auth and Location: to new host using location-trusted 68</name> 69<command> 70http://first.host.it.is/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this --location-trusted 71</command> 72<features> 73proxy 74</features> 75</client> 76 77# 78# Verify data after the test has been "shot" 79<verify> 80<protocol> 81GET http://first.host.it.is/we/want/that/page/%TESTNUMBER HTTP/1.1 82Host: first.host.it.is 83Proxy-Authorization: Basic dGVzdGluZzp0aGlz 84Authorization: Basic aWFtOm15c2VsZg== 85User-Agent: curl/%VERSION 86Accept: */* 87Proxy-Connection: Keep-Alive 88 89GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1 90Host: goto.second.host.now 91Proxy-Authorization: Basic dGVzdGluZzp0aGlz 92Authorization: Basic aWFtOm15c2VsZg== 93User-Agent: curl/%VERSION 94Accept: */* 95Proxy-Connection: Keep-Alive 96 97</protocol> 98</verify> 99</testcase> 100