13 <!-- Alternate the order that Digest and NTLM headers appear in responses to
14 ensure that the order doesn't matter. -->
16 <!-- First request has Digest auth, wrong password -->
18 HTTP/1.1 401 Need Digest or NTLM auth
\r
19 Server: Microsoft-IIS/5.0
\r
20 Content-Type: text/html; charset=iso-8859-1
\r
22 WWW-Authenticate: NTLM
\r
23 WWW-Authenticate: Digest realm="testrealm", nonce="1"
\r
25 This is not the real page!
29 HTTP/1.1 401 Sorry wrong password
\r
30 Server: Microsoft-IIS/5.0
\r
31 Content-Type: text/html; charset=iso-8859-1
\r
33 WWW-Authenticate: Digest realm="testrealm", nonce="2"
\r
34 WWW-Authenticate: NTLM
\r
36 This is a bad password page!
39 <!-- Second request has NTLM auth, right password -->
41 HTTP/1.1 401 Need Digest or NTLM auth (2)
\r
42 Server: Microsoft-IIS/5.0
\r
43 Content-Type: text/html; charset=iso-8859-1
\r
45 WWW-Authenticate: NTLM
\r
46 WWW-Authenticate: Digest realm="testrealm", nonce="3"
\r
48 This is not the real page!
52 HTTP/1.1 401 NTLM intermediate
\r
53 Server: Microsoft-IIS/5.0
\r
54 Content-Type: text/html; charset=iso-8859-1
\r
56 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
\r
58 This is still not the real page!
62 HTTP/1.1 200 Things are fine in server land
\r
63 Server: Microsoft-IIS/5.0
\r
64 Content-Type: text/html; charset=iso-8859-1
\r
67 Finally, this is the real page!
70 <!-- Third request has Digest auth, wrong password -->
72 HTTP/1.1 401 Need Digest or NTLM auth (3)
\r
73 Server: Microsoft-IIS/5.0
\r
74 Content-Type: text/html; charset=iso-8859-1
\r
76 WWW-Authenticate: Digest realm="testrealm", nonce="4"
\r
77 WWW-Authenticate: NTLM
\r
79 This is not the real page!
83 HTTP/1.1 401 Sorry wrong password (2)
\r
84 Server: Microsoft-IIS/5.0
\r
85 Content-Type: text/html; charset=iso-8859-1
\r
87 WWW-Authenticate: NTLM
\r
88 WWW-Authenticate: Digest realm="testrealm", nonce="5"
\r
90 This is a bad password page!
93 <!-- Fourth request has NTLM auth, wrong password -->
95 HTTP/1.1 401 Need Digest or NTLM auth (4)
\r
96 Server: Microsoft-IIS/5.0
\r
97 Content-Type: text/html; charset=iso-8859-1
\r
99 WWW-Authenticate: Digest realm="testrealm", nonce="6"
\r
100 WWW-Authenticate: NTLM
\r
102 This is not the real page!
106 HTTP/1.1 401 NTLM intermediate (2)
\r
107 Server: Microsoft-IIS/5.0
\r
108 Content-Type: text/html; charset=iso-8859-1
\r
110 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
\r
112 This is still not the real page!
116 HTTP/1.1 401 Sorry wrong password (3)
\r
117 Server: Microsoft-IIS/5.0
\r
118 Content-Type: text/html; charset=iso-8859-1
\r
120 WWW-Authenticate: NTLM
\r
121 WWW-Authenticate: Digest realm="testrealm", nonce="7"
\r
123 This is a bad password page!
126 <!-- Fifth request has NTLM auth, right password -->
128 HTTP/1.1 401 Need Digest or NTLM auth (5)
\r
129 Server: Microsoft-IIS/5.0
\r
130 Content-Type: text/html; charset=iso-8859-1
\r
132 WWW-Authenticate: Digest realm="testrealm", nonce="8"
\r
133 WWW-Authenticate: NTLM
\r
135 This is not the real page!
139 HTTP/1.1 401 NTLM intermediate (3)
\r
140 Server: Microsoft-IIS/5.0
\r
141 Content-Type: text/html; charset=iso-8859-1
\r
143 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
\r
145 This is still not the real page!
149 HTTP/1.1 200 Things are fine in server land (2)
\r
150 Server: Microsoft-IIS/5.0
\r
151 Content-Type: text/html; charset=iso-8859-1
\r
154 Finally, this is the real page!
158 HTTP/1.1 401 Need Digest or NTLM auth
\r
159 Server: Microsoft-IIS/5.0
\r
160 Content-Type: text/html; charset=iso-8859-1
\r
162 WWW-Authenticate: NTLM
\r
163 WWW-Authenticate: Digest realm="testrealm", nonce="1"
\r
165 HTTP/1.1 401 Sorry wrong password
\r
166 Server: Microsoft-IIS/5.0
\r
167 Content-Type: text/html; charset=iso-8859-1
\r
169 WWW-Authenticate: Digest realm="testrealm", nonce="2"
\r
170 WWW-Authenticate: NTLM
\r
172 This is a bad password page!
173 HTTP/1.1 401 NTLM intermediate
\r
174 Server: Microsoft-IIS/5.0
\r
175 Content-Type: text/html; charset=iso-8859-1
\r
177 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
\r
179 HTTP/1.1 200 Things are fine in server land
\r
180 Server: Microsoft-IIS/5.0
\r
181 Content-Type: text/html; charset=iso-8859-1
\r
184 Finally, this is the real page!
185 HTTP/1.1 401 Need Digest or NTLM auth (3)
\r
186 Server: Microsoft-IIS/5.0
\r
187 Content-Type: text/html; charset=iso-8859-1
\r
189 WWW-Authenticate: Digest realm="testrealm", nonce="4"
\r
190 WWW-Authenticate: NTLM
\r
192 HTTP/1.1 401 Sorry wrong password (2)
\r
193 Server: Microsoft-IIS/5.0
\r
194 Content-Type: text/html; charset=iso-8859-1
\r
196 WWW-Authenticate: NTLM
\r
197 WWW-Authenticate: Digest realm="testrealm", nonce="5"
\r
199 This is a bad password page!
200 HTTP/1.1 401 NTLM intermediate (2)
\r
201 Server: Microsoft-IIS/5.0
\r
202 Content-Type: text/html; charset=iso-8859-1
\r
204 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
\r
206 HTTP/1.1 401 Sorry wrong password (3)
\r
207 Server: Microsoft-IIS/5.0
\r
208 Content-Type: text/html; charset=iso-8859-1
\r
210 WWW-Authenticate: NTLM
\r
211 WWW-Authenticate: Digest realm="testrealm", nonce="7"
\r
213 This is a bad password page!
214 HTTP/1.1 401 NTLM intermediate (3)
\r
215 Server: Microsoft-IIS/5.0
\r
216 Content-Type: text/html; charset=iso-8859-1
\r
218 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
\r
220 HTTP/1.1 200 Things are fine in server land (2)
\r
221 Server: Microsoft-IIS/5.0
\r
222 Content-Type: text/html; charset=iso-8859-1
\r
225 Finally, this is the real page!
243 HTTP authorization retry (Digest switching to NTLM)
246 # we force our own host name, in order to make the test machine independent
247 CURL_GETHOSTNAME=curlhost
248 # we try to use the LD_PRELOAD hack, if not a debug build
249 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
252 http://%HOSTIP:%HTTPPORT/2028 digest ntlm
259 # Verify data after the test has been "shot"
265 GET /20280100 HTTP/1.1
\r
266 Host: %HOSTIP:%HTTPPORT
\r
269 GET /20280100 HTTP/1.1
\r
270 Authorization: Digest username="testuser", realm="testrealm", nonce="1", uri="/20280100", response="53c80666f5e3a4a55f92a66aaf0078bb"
\r
271 Host: %HOSTIP:%HTTPPORT
\r
274 GET /20280200 HTTP/1.1
\r
275 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
276 Host: %HOSTIP:%HTTPPORT
\r
279 GET /20280200 HTTP/1.1
\r
280 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyY3VybGhvc3Q=
\r
281 Host: %HOSTIP:%HTTPPORT
\r
284 GET /20280300 HTTP/1.1
\r
285 Host: %HOSTIP:%HTTPPORT
\r
288 GET /20280300 HTTP/1.1
\r
289 Authorization: Digest username="testuser", realm="testrealm", nonce="4", uri="/20280300", response="1aa5d90da9803ca12d04b24e0f19476e"
\r
290 Host: %HOSTIP:%HTTPPORT
\r
293 GET /20280400 HTTP/1.1
\r
294 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
295 Host: %HOSTIP:%HTTPPORT
\r
298 GET /20280400 HTTP/1.1
\r
299 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyY3VybGhvc3Q=
\r
300 Host: %HOSTIP:%HTTPPORT
\r
303 GET /20280500 HTTP/1.1
\r
304 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
305 Host: %HOSTIP:%HTTPPORT
\r
308 GET /20280500 HTTP/1.1
\r
309 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyY3VybGhvc3Q=
\r
310 Host: %HOSTIP:%HTTPPORT
\r