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: Thu, 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: Thu, 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.275:%HTTPPORT/we/want/that/page/275 -p -x %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself http://remotesite.com.275:%HTTPPORT/we/want/that/page/275 58</command> 59<features> 60proxy 61</features> 62</client> 63 64# 65# Verify data after the test has been "shot" 66<verify> 67<strip> 68^User-Agent:.* 69</strip> 70<proxy> 71CONNECT remotesite.com.275:%HTTPPORT HTTP/1.1 72Host: remotesite.com.275:%HTTPPORT 73Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm 74User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3 75Proxy-Connection: Keep-Alive 76 77</proxy> 78<protocol> 79GET /we/want/that/page/275 HTTP/1.1 80Host: remotesite.com.275:%HTTPPORT 81Authorization: Basic aWFtOm15c2VsZg== 82Accept: */* 83 84GET /we/want/that/page/275 HTTP/1.1 85Host: remotesite.com.275:%HTTPPORT 86Authorization: Basic aWFtOm15c2VsZg== 87Accept: */* 88 89</protocol> 90</verify> 91</testcase> 92