1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP CONNECT 7HTTP proxy 8proxytunnel 9HTTP proxy Digest auth 10</keywords> 11</info> 12 13# Server-side 14<reply> 15 16# this is returned first since we get no proxy-auth 17<data> 18HTTP/1.1 407 Authorization Required to proxy me my dear 19Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345" 20 21And you should ignore this data. 22</data> 23 24# this is returned when we get a GET! 25<data2> 26HTTP/1.1 200 OK 27Date: Thu, 09 Nov 2010 14:49:00 GMT 28Content-Length: 7 29Connection: close 30Content-Type: text/html 31Funny-head: yesyes 32 33daniel 34</data2> 35 36# then this is returned when we get proxy-auth 37<data1000> 38HTTP/1.1 200 OK swsbounce 39Server: no 40 41Nice proxy auth sir! 42</data1000> 43 44<datacheck> 45HTTP/1.1 407 Authorization Required to proxy me my dear 46Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345" 47 48HTTP/1.1 200 OK swsbounce 49Server: no 50 51HTTP/1.1 200 OK 52Date: Thu, 09 Nov 2010 14:49:00 GMT 53Content-Length: 7 54Connection: close 55Content-Type: text/html 56Funny-head: yesyes 57 58daniel 59</datacheck> 60</reply> 61 62# Client-side 63<client> 64<server> 65http 66</server> 67<features> 68crypto 69</features> 70 <name> 71HTTP proxy CONNECT auth Digest 72 </name> 73 <command> 74http://test.remote.haxx.se:206/path/2060002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel 75</command> 76</client> 77 78# Verify data after the test has been "shot" 79<verify> 80<strip> 81^User-Agent: curl/.* 82</strip> 83<protocol> 84CONNECT test.remote.haxx.se:206 HTTP/1.1 85Host: test.remote.haxx.se:206 86Proxy-Connection: Keep-Alive 87 88CONNECT test.remote.haxx.se:206 HTTP/1.1 89Host: test.remote.haxx.se:206 90Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se:206", response="676e0836f3e1c5b31bf29770ef9d8224" 91Proxy-Connection: Keep-Alive 92 93GET /path/2060002 HTTP/1.1 94User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4 95Host: test.remote.haxx.se:206 96Accept: */* 97 98</protocol> 99</verify> 100</testcase> 101