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<data> 18HTTP/1.1 200 OK 19Date: Thu, 09 Nov 2010 14:49:00 GMT 20Server: test-server/fake swsclose 21Content-Type: text/html 22Funny-head: yesyes 23Content-Length: 9 24 25contents 26</data> 27<datacheck> 28HTTP/1.1 200 Mighty fine indeed 29 30HTTP/1.1 200 OK 31Date: Thu, 09 Nov 2010 14:49:00 GMT 32Server: test-server/fake swsclose 33Content-Type: text/html 34Funny-head: yesyes 35Content-Length: 9 36 37contents 38</datacheck> 39</reply> 40 41# 42# Client-side 43<client> 44<server> 45http 46</server> 47 <name> 48HTTP 1.0 CONNECT with proxytunnel and host Basic authentication 49 </name> 50 <command> 51http://%HOSTIP:%HTTPPORT/we/want/that/page/80 -p --proxy1.0 %HOSTIP:%HTTPPORT --user iam:myself --proxy-user youare:yourself 52</command> 53</client> 54 55# 56# Verify data after the test has been "shot" 57<verify> 58<strip> 59^User-Agent:.* 60</strip> 61<protocol> 62CONNECT %HOSTIP:%HTTPPORT HTTP/1.0 63Host: %HOSTIP:%HTTPPORT 64Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm 65User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3 66Proxy-Connection: Keep-Alive 67 68GET /we/want/that/page/80 HTTP/1.1 69Authorization: Basic aWFtOm15c2VsZg== 70User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3 71Host: %HOSTIP:%HTTPPORT 72Accept: */* 73 74</protocol> 75</verify> 76</testcase> 77