1<testcase> 2# Mostly a duplicate of test168 3<info> 4<keywords> 5HTTP 6HTTP GET 7HTTP proxy 8HTTP proxy Digest auth 9HTTP Digest auth 10HTTP auth in URL 11</keywords> 12</info> 13 14# Server-side 15<reply> 16 17# this is returned first since we get no proxy-auth 18<data> 19HTTP/1.1 407 Authorization Required to proxy me my dear swsclose 20Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345" 21 22And you should ignore this data. 23</data> 24 25# then this is returned since we get no server-auth 26<data1000> 27HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose 28WWW-Authenticate: Digest realm="realmweirdo", nonce="123456" 29 30you should ignore this data too 31</data1000> 32 33<data1001> 34HTTP/1.1 200 OK swsclose 35Server: no 36Content-Length: 15 37 38Nice auth sir! 39</data1001> 40 41<datacheck> 42HTTP/1.1 407 Authorization Required to proxy me my dear swsclose 43Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345" 44 45HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose 46WWW-Authenticate: Digest realm="realmweirdo", nonce="123456" 47 48HTTP/1.1 200 OK swsclose 49Server: no 50Content-Length: 15 51 52Nice auth sir! 53</datacheck> 54</reply> 55 56# Client-side 57<client> 58<server> 59http 60</server> 61<features> 62!SSPI 63crypto 64proxy 65</features> 66<name> 67HTTP with proxy Digest and site Digest with creds in URLs 68</name> 69<command> 70http://digest:alot@data.from.server.requiring.digest.hohoho.com/%TESTNUMBER --proxy http://foo:bar@%HOSTIP:%HTTPPORT --proxy-digest --digest 71</command> 72</client> 73 74# Verify data after the test has been "shot" 75<verify> 76<protocol> 77GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1 78Host: data.from.server.requiring.digest.hohoho.com 79User-Agent: curl/%VERSION 80Accept: */* 81Proxy-Connection: Keep-Alive 82 83GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1 84Host: data.from.server.requiring.digest.hohoho.com 85Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/%TESTNUMBER", response="f61609cd8f5bb205ef4e169b2c5626cb" 86User-Agent: curl/%VERSION 87Accept: */* 88Proxy-Connection: Keep-Alive 89 90GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1 91Host: data.from.server.requiring.digest.hohoho.com 92Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/%TESTNUMBER", response="f61609cd8f5bb205ef4e169b2c5626cb" 93Authorization: Digest username="digest", realm="realmweirdo", nonce="123456", uri="/%TESTNUMBER", response="08a2e2e684047f4219a38ddc189ac00c" 94User-Agent: curl/%VERSION 95Accept: */* 96Proxy-Connection: Keep-Alive 97 98</protocol> 99</verify> 100</testcase> 101