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
19 Server: Microsoft-IIS/5.0
20 Content-Type: text/html; charset=iso-8859-1
22 WWW-Authenticate: NTLM
23 WWW-Authenticate: Digest realm="testrealm", nonce="1"
25 This is not the real page!
29 HTTP/1.1 401 Sorry wrong password
30 Server: Microsoft-IIS/5.0
31 Content-Type: text/html; charset=iso-8859-1
33 WWW-Authenticate: Digest realm="testrealm", nonce="2"
34 WWW-Authenticate: NTLM
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)
42 Server: Microsoft-IIS/5.0
43 Content-Type: text/html; charset=iso-8859-1
45 WWW-Authenticate: NTLM
46 WWW-Authenticate: Digest realm="testrealm", nonce="3"
48 This is not the real page!
52 HTTP/1.1 401 NTLM intermediate
53 Server: Microsoft-IIS/5.0
54 Content-Type: text/html; charset=iso-8859-1
56 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
58 This is still not the real page!
62 HTTP/1.1 200 Things are fine in server land
63 Server: Microsoft-IIS/5.0
64 Content-Type: text/html; charset=iso-8859-1
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)
73 Server: Microsoft-IIS/5.0
74 Content-Type: text/html; charset=iso-8859-1
76 WWW-Authenticate: Digest realm="testrealm", nonce="4"
77 WWW-Authenticate: NTLM
79 This is not the real page!
83 HTTP/1.1 401 Sorry wrong password (2)
84 Server: Microsoft-IIS/5.0
85 Content-Type: text/html; charset=iso-8859-1
87 WWW-Authenticate: NTLM
88 WWW-Authenticate: Digest realm="testrealm", nonce="5"
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)
96 Server: Microsoft-IIS/5.0
97 Content-Type: text/html; charset=iso-8859-1
99 WWW-Authenticate: Digest realm="testrealm", nonce="6"
100 WWW-Authenticate: NTLM
102 This is not the real page!
106 HTTP/1.1 401 NTLM intermediate (2)
107 Server: Microsoft-IIS/5.0
108 Content-Type: text/html; charset=iso-8859-1
110 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
112 This is still not the real page!
116 HTTP/1.1 401 Sorry wrong password (3)
117 Server: Microsoft-IIS/5.0
118 Content-Type: text/html; charset=iso-8859-1
120 WWW-Authenticate: NTLM
121 WWW-Authenticate: Digest realm="testrealm", nonce="7"
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)
129 Server: Microsoft-IIS/5.0
130 Content-Type: text/html; charset=iso-8859-1
132 WWW-Authenticate: Digest realm="testrealm", nonce="8"
133 WWW-Authenticate: NTLM
135 This is not the real page!
139 HTTP/1.1 401 NTLM intermediate (3)
140 Server: Microsoft-IIS/5.0
141 Content-Type: text/html; charset=iso-8859-1
143 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
145 This is still not the real page!
149 HTTP/1.1 200 Things are fine in server land (2)
150 Server: Microsoft-IIS/5.0
151 Content-Type: text/html; charset=iso-8859-1
154 Finally, this is the real page!
158 HTTP/1.1 401 Need Digest or NTLM auth
159 Server: Microsoft-IIS/5.0
160 Content-Type: text/html; charset=iso-8859-1
162 WWW-Authenticate: NTLM
163 WWW-Authenticate: Digest realm="testrealm", nonce="1"
165 HTTP/1.1 401 Sorry wrong password
166 Server: Microsoft-IIS/5.0
167 Content-Type: text/html; charset=iso-8859-1
169 WWW-Authenticate: Digest realm="testrealm", nonce="2"
170 WWW-Authenticate: NTLM
172 This is a bad password page!
173 HTTP/1.1 401 NTLM intermediate
174 Server: Microsoft-IIS/5.0
175 Content-Type: text/html; charset=iso-8859-1
177 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
179 HTTP/1.1 200 Things are fine in server land
180 Server: Microsoft-IIS/5.0
181 Content-Type: text/html; charset=iso-8859-1
184 Finally, this is the real page!
185 HTTP/1.1 401 Need Digest or NTLM auth (3)
186 Server: Microsoft-IIS/5.0
187 Content-Type: text/html; charset=iso-8859-1
189 WWW-Authenticate: Digest realm="testrealm", nonce="4"
190 WWW-Authenticate: NTLM
192 HTTP/1.1 401 Sorry wrong password (2)
193 Server: Microsoft-IIS/5.0
194 Content-Type: text/html; charset=iso-8859-1
196 WWW-Authenticate: NTLM
197 WWW-Authenticate: Digest realm="testrealm", nonce="5"
199 This is a bad password page!
200 HTTP/1.1 401 NTLM intermediate (2)
201 Server: Microsoft-IIS/5.0
202 Content-Type: text/html; charset=iso-8859-1
204 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
206 HTTP/1.1 401 Sorry wrong password (3)
207 Server: Microsoft-IIS/5.0
208 Content-Type: text/html; charset=iso-8859-1
210 WWW-Authenticate: NTLM
211 WWW-Authenticate: Digest realm="testrealm", nonce="7"
213 This is a bad password page!
214 HTTP/1.1 401 NTLM intermediate (3)
215 Server: Microsoft-IIS/5.0
216 Content-Type: text/html; charset=iso-8859-1
218 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
220 HTTP/1.1 200 Things are fine in server land (2)
221 Server: Microsoft-IIS/5.0
222 Content-Type: text/html; charset=iso-8859-1
225 Finally, this is the real page!
244 HTTP authorization retry (Digest switching to NTLM)
247 # we force our own host name, in order to make the test machine independent
248 CURL_GETHOSTNAME=curlhost
249 # we try to use the LD_PRELOAD hack, if not a debug build
250 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
253 http://%HOSTIP:%HTTPPORT/2028 digest ntlm
260 # Verify data after the test has been "shot"
266 GET /20280100 HTTP/1.1
267 Host: %HOSTIP:%HTTPPORT
270 GET /20280100 HTTP/1.1
271 Host: %HOSTIP:%HTTPPORT
272 Authorization: Digest username="testuser", realm="testrealm", nonce="1", uri="/20280100", response="53c80666f5e3a4a55f92a66aaf0078bb"
275 GET /20280200 HTTP/1.1
276 Host: %HOSTIP:%HTTPPORT
277 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
280 GET /20280200 HTTP/1.1
281 Host: %HOSTIP:%HTTPPORT
282 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyY3VybGhvc3Q=
285 GET /20280300 HTTP/1.1
286 Host: %HOSTIP:%HTTPPORT
289 GET /20280300 HTTP/1.1
290 Host: %HOSTIP:%HTTPPORT
291 Authorization: Digest username="testuser", realm="testrealm", nonce="4", uri="/20280300", response="1aa5d90da9803ca12d04b24e0f19476e"
294 GET /20280400 HTTP/1.1
295 Host: %HOSTIP:%HTTPPORT
296 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
299 GET /20280400 HTTP/1.1
300 Host: %HOSTIP:%HTTPPORT
301 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyY3VybGhvc3Q=
304 GET /20280500 HTTP/1.1
305 Host: %HOSTIP:%HTTPPORT
306 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
309 GET /20280500 HTTP/1.1
310 Host: %HOSTIP:%HTTPPORT
311 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyY3VybGhvc3Q=