4 # this is returned first since we get no proxy-auth
6 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
\r
7 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
\r
9 And you should ignore this data.
12 # then this is returned since we get no server-auth
14 HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose
\r
15 WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"
\r
17 you should ignore this data too
21 HTTP/1.1 200 OK swsclose
\r
28 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
\r
29 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
\r
31 HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose
\r
32 WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"
\r
34 HTTP/1.1 200 OK swsclose
\r
47 HTTP with proxy-requiring-Digest to site-requiring-Digest
50 http://data.from.server.requiring.digest.hohoho.com/168 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-digest --digest --user digest:alot
54 # Verify data after the test has been "shot"
60 GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
\r
61 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
\r
62 Host: data.from.server.requiring.digest.hohoho.com
\r
66 GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
\r
67 Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/168", response="fb8608e00ad9239a3dedb14bc8575976"
\r
68 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
\r
69 Host: data.from.server.requiring.digest.hohoho.com
\r
73 GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
\r
74 Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/168", response="fb8608e00ad9239a3dedb14bc8575976"
\r
75 Authorization: Digest username="digest", realm="realmweirdo", nonce="123456", uri="/168", response="ca87f2d768a231e2d637a55698d5c416"
\r
76 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
\r
77 Host: data.from.server.requiring.digest.hohoho.com
\r