15 # this is returned first since we get no proxy-auth
17 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
18 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
20 And you should ignore this data.
23 # then this is returned since we get no server-auth
25 HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose
26 WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"
28 you should ignore this data too
32 HTTP/1.1 200 OK swsclose
40 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
41 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
43 HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose
44 WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"
46 HTTP/1.1 200 OK swsclose
64 HTTP with proxy-requiring-Digest to site-requiring-Digest
67 http://data.from.server.requiring.digest.hohoho.com/168 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-digest --digest --user digest:alot
71 # Verify data after the test has been "shot"
77 GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
78 Host: data.from.server.requiring.digest.hohoho.com
79 User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b zlib/1.1.4 c-ares/1.2.0 libidn/0.4.3
81 Proxy-Connection: Keep-Alive
83 GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
84 Host: data.from.server.requiring.digest.hohoho.com
85 Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/168", response="fb8608e00ad9239a3dedb14bc8575976"
86 User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b zlib/1.1.4 c-ares/1.2.0 libidn/0.4.3
88 Proxy-Connection: Keep-Alive
90 GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
91 Host: data.from.server.requiring.digest.hohoho.com
92 Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/168", response="fb8608e00ad9239a3dedb14bc8575976"
93 Authorization: Digest username="digest", realm="realmweirdo", nonce="123456", uri="/168", response="ca87f2d768a231e2d637a55698d5c416"
94 User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.3
96 Proxy-Connection: Keep-Alive