12 # reply back and ask for Digest auth
14 HTTP/1.1 401 Authorization Required swsclose
15 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
16 WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
17 Content-Type: text/html; charset=iso-8859-1
20 This is not the real page
23 # This is supposed to be returned when the server gets a
24 # Authorization: Digest line passed-in from the client
27 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
28 Content-Type: text/html; charset=iso-8859-1
31 This IS the real page!
35 # This is the second request, and this sends back a response saying that
36 # the request contained stale data. We want an update. Set swsbounce to
37 # bounce on to data1003 on the second request.
39 HTTP/1.1 401 Authorization re-negotiation please swsbounce
40 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
41 WWW-Authenticate: Digest realm="testrealm", algorithm=MD5, nonce="999999", stale=true, qop="auth"
42 Content-Type: text/html; charset=iso-8859-1
45 This is not the real page
48 # The second request to the 1002 section will bounce this one back instead
49 # thanks to the swsbounce keyword up there
52 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
53 Content-Type: text/html; charset=iso-8859-1
56 This IS the second real page!
69 HTTP with Digest authorization with stale=true
72 http://%HOSTIP:%HTTPPORT/1530001 -u testuser:testpass --digest http://%HOSTIP:%HTTPPORT/1530002
76 # Verify data after the test has been "shot"
79 ^Authorization.*cnonce
84 Host: %HOSTIP:%HTTPPORT
88 Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/1530001", response="f4f83139396995bac665f24a1f1055c7"
89 User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3
90 Host: %HOSTIP:%HTTPPORT
94 Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/1530002", response="f84511b014fdd0ba6494f42871079c32"
95 User-Agent: curl/7.11.0-CVS (i686-pc-linux-gnu) libcurl/7.11.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS
96 Host: %HOSTIP:%HTTPPORT
100 Authorization: Digest username="testuser", realm="testrealm", nonce="999999", uri="/1530002", cnonce="MTA4MzIy", nc="00000001", qop="auth", response="25291c357671604a16c0242f56721c07", algorithm="MD5"
101 User-Agent: curl/7.11.0-CVS (i686-pc-linux-gnu) libcurl/7.11.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS
102 Host: %HOSTIP:%HTTPPORT
107 HTTP/1.1 401 Authorization Required swsclose
108 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
109 WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
110 Content-Type: text/html; charset=iso-8859-1
114 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
115 Content-Type: text/html; charset=iso-8859-1
118 This IS the real page!
119 HTTP/1.1 401 Authorization re-negotiation please swsbounce
120 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
121 WWW-Authenticate: Digest realm="testrealm", algorithm=MD5, nonce="999999", stale=true, qop="auth"
122 Content-Type: text/html; charset=iso-8859-1
126 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
127 Content-Type: text/html; charset=iso-8859-1
130 This IS the second real page!