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