12 <!-- First request has Digest auth, wrong password -->
14 HTTP/1.1 401 Need Digest auth
\r
15 Server: Microsoft-IIS/5.0
\r
16 Content-Type: text/html; charset=iso-8859-1
\r
18 WWW-Authenticate: Digest realm="testrealm", nonce="1"
\r
20 This is not the real page!
24 HTTP/1.1 401 Sorry wrong password
\r
25 Server: Microsoft-IIS/5.0
\r
26 Content-Type: text/html; charset=iso-8859-1
\r
28 WWW-Authenticate: Digest realm="testrealm", nonce="2"
\r
30 This is a bad password page!
33 <!-- Second request has Digest auth, right password -->
35 HTTP/1.1 401 Need Digest auth (2)
\r
36 Server: Microsoft-IIS/5.0
\r
37 Content-Type: text/html; charset=iso-8859-1
\r
39 WWW-Authenticate: Digest realm="testrealm", nonce="3"
\r
41 This is not the real page!
45 HTTP/1.1 200 Things are fine in server land
\r
46 Server: Microsoft-IIS/5.0
\r
47 Content-Type: text/html; charset=iso-8859-1
\r
50 Finally, this is the real page!
53 <!-- Third request has Digest auth, wrong password -->
55 HTTP/1.1 401 Need Digest auth (3)
\r
56 Server: Microsoft-IIS/5.0
\r
57 Content-Type: text/html; charset=iso-8859-1
\r
59 WWW-Authenticate: Digest realm="testrealm", nonce="4"
\r
61 This is not the real page!
65 HTTP/1.1 401 Sorry wrong password (2)
\r
66 Server: Microsoft-IIS/5.0
\r
67 Content-Type: text/html; charset=iso-8859-1
\r
69 WWW-Authenticate: Digest realm="testrealm", nonce="5"
\r
71 This is a bad password page!
74 <!-- Fourth request has Digest auth, wrong password -->
76 HTTP/1.1 401 Need Digest auth (4)
\r
77 Server: Microsoft-IIS/5.0
\r
78 Content-Type: text/html; charset=iso-8859-1
\r
80 WWW-Authenticate: Digest realm="testrealm", nonce="6"
\r
82 This is not the real page!
86 HTTP/1.1 401 Sorry wrong password (3)
\r
87 Server: Microsoft-IIS/5.0
\r
88 Content-Type: text/html; charset=iso-8859-1
\r
90 WWW-Authenticate: Digest realm="testrealm", nonce="7"
\r
92 This is a bad password page!
95 <!-- Fifth request has Digest auth, right password -->
97 HTTP/1.1 401 Need Digest auth (5)
\r
98 Server: Microsoft-IIS/5.0
\r
99 Content-Type: text/html; charset=iso-8859-1
\r
101 WWW-Authenticate: Digest realm="testrealm", nonce="8"
\r
103 This is not the real page!
107 HTTP/1.1 200 Things are fine in server land (2)
\r
108 Server: Microsoft-IIS/5.0
\r
109 Content-Type: text/html; charset=iso-8859-1
\r
112 Finally, this is the real page!
116 HTTP/1.1 401 Need Digest auth
\r
117 Server: Microsoft-IIS/5.0
\r
118 Content-Type: text/html; charset=iso-8859-1
\r
120 WWW-Authenticate: Digest realm="testrealm", nonce="1"
\r
122 HTTP/1.1 401 Sorry wrong password
\r
123 Server: Microsoft-IIS/5.0
\r
124 Content-Type: text/html; charset=iso-8859-1
\r
126 WWW-Authenticate: Digest realm="testrealm", nonce="2"
\r
128 This is a bad password page!
129 HTTP/1.1 200 Things are fine in server land
\r
130 Server: Microsoft-IIS/5.0
\r
131 Content-Type: text/html; charset=iso-8859-1
\r
134 Finally, this is the real page!
135 HTTP/1.1 401 Need Digest auth (3)
\r
136 Server: Microsoft-IIS/5.0
\r
137 Content-Type: text/html; charset=iso-8859-1
\r
139 WWW-Authenticate: Digest realm="testrealm", nonce="4"
\r
141 HTTP/1.1 401 Sorry wrong password (2)
\r
142 Server: Microsoft-IIS/5.0
\r
143 Content-Type: text/html; charset=iso-8859-1
\r
145 WWW-Authenticate: Digest realm="testrealm", nonce="5"
\r
147 This is a bad password page!
148 HTTP/1.1 401 Sorry wrong password (3)
\r
149 Server: Microsoft-IIS/5.0
\r
150 Content-Type: text/html; charset=iso-8859-1
\r
152 WWW-Authenticate: Digest realm="testrealm", nonce="7"
\r
154 This is a bad password page!
155 HTTP/1.1 200 Things are fine in server land (2)
\r
156 Server: Microsoft-IIS/5.0
\r
157 Content-Type: text/html; charset=iso-8859-1
\r
160 Finally, this is the real page!
175 HTTP authorization retry (Digest)
178 # we force our own host name, in order to make the test machine independent
179 CURL_GETHOSTNAME=curlhost
180 # we try to use the LD_PRELOAD hack, if not a debug build
181 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
184 http://%HOSTIP:%HTTPPORT/2027 digest digest
191 # Verify data after the test has been "shot"
197 GET /20270100 HTTP/1.1
\r
198 Host: %HOSTIP:%HTTPPORT
\r
201 GET /20270100 HTTP/1.1
\r
202 Authorization: Digest username="testuser", realm="testrealm", nonce="1", uri="/20270100", response="f7fd60eefaff5225971bf9b3d80d6ba6"
\r
203 Host: %HOSTIP:%HTTPPORT
\r
206 GET /20270200 HTTP/1.1
\r
207 Authorization: Digest username="testuser", realm="testrealm", nonce="2", uri="/20270200", response="785ca3ef511999f7e9c178195f5b388c"
\r
208 Host: %HOSTIP:%HTTPPORT
\r
211 GET /20270300 HTTP/1.1
\r
212 Host: %HOSTIP:%HTTPPORT
\r
215 GET /20270300 HTTP/1.1
\r
216 Authorization: Digest username="testuser", realm="testrealm", nonce="4", uri="/20270300", response="4c735d2360fd6848e7cb32a11ae3612b"
\r
217 Host: %HOSTIP:%HTTPPORT
\r
220 GET /20270400 HTTP/1.1
\r
221 Authorization: Digest username="testuser", realm="testrealm", nonce="5", uri="/20270400", response="f5906785511fb60a2af8b1cd53008ead"
\r
222 Host: %HOSTIP:%HTTPPORT
\r
225 GET /20270500 HTTP/1.1
\r
226 Authorization: Digest username="testuser", realm="testrealm", nonce="7", uri="/20270500", response="8ef4d935fd964a46c3965c0863b52cf1"
\r
227 Host: %HOSTIP:%HTTPPORT
\r