1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP CONNECT 7HTTP Basic auth 8HTTP proxy 9HTTP proxy Basic auth 10proxytunnel 11</keywords> 12</info> 13 14# 15# Server-side 16<reply> 17<connect> 18HTTP/1.1 200 OK 19Connected-fine: sure 20 21</connect> 22 23<data> 24HTTP/1.1 200 OK 25Date: Tue, 09 Nov 2010 14:49:00 GMT 26Server: test-server/fake 27Content-Type: text/html 28Content-Length: 9 29 30contents 31</data> 32<datacheck> 33HTTP/1.1 200 OK 34Connected-fine: sure 35 36HTTP/1.1 200 OK 37Date: Tue, 09 Nov 2010 14:49:00 GMT 38Server: test-server/fake 39Content-Type: text/html 40Content-Length: 9 41 42contents 43</datacheck> 44</reply> 45 46# 47# Client-side 48<client> 49<server> 50http 51http-proxy 52</server> 53<name> 54HTTP CONNECT with proxytunnel getting two URLs from the same host 55</name> 56<command> 57http://remotesite.com.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER -p -x %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself http://remotesite.com.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER 58</command> 59<features> 60proxy 61</features> 62</client> 63 64# 65# Verify data after the test has been "shot" 66<verify> 67<proxy> 68CONNECT remotesite.com.%TESTNUMBER:%HTTPPORT HTTP/1.1 69Host: remotesite.com.%TESTNUMBER:%HTTPPORT 70Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm 71User-Agent: curl/%VERSION 72Proxy-Connection: Keep-Alive 73 74</proxy> 75<protocol> 76GET /we/want/that/page/%TESTNUMBER HTTP/1.1 77Host: remotesite.com.%TESTNUMBER:%HTTPPORT 78Authorization: Basic aWFtOm15c2VsZg== 79User-Agent: curl/%VERSION 80Accept: */* 81 82GET /we/want/that/page/%TESTNUMBER HTTP/1.1 83Host: remotesite.com.%TESTNUMBER:%HTTPPORT 84Authorization: Basic aWFtOm15c2VsZg== 85User-Agent: curl/%VERSION 86Accept: */* 87 88</protocol> 89</verify> 90</testcase> 91