13 <!-- Alternate the order that Basic and NTLM headers appear in responses to
14 ensure that the order doesn't matter. -->
16 <!-- First request has NTLM auth, wrong password -->
18 HTTP/1.1 401 Need Basic 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: Basic realm="testrealm"
25 This is not the real page!
29 HTTP/1.1 401 NTLM intermediate
30 Server: Microsoft-IIS/5.0
31 Content-Type: text/html; charset=iso-8859-1
33 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
35 This is still not the real page!
39 HTTP/1.1 401 Sorry wrong password
40 Server: Microsoft-IIS/5.0
41 Content-Type: text/html; charset=iso-8859-1
43 WWW-Authenticate: Basic realm="testrealm"
44 WWW-Authenticate: NTLM
46 This is a bad password page!
49 <!-- Second request has Basic auth, right password -->
51 HTTP/1.1 200 Things are fine in server land
52 Server: Microsoft-IIS/5.0
53 Content-Type: text/html; charset=iso-8859-1
56 Finally, this is the real page!
59 <!-- Third request has NTLM auth, wrong password -->
61 HTTP/1.1 401 Need Basic or NTLM auth (2)
62 Server: Microsoft-IIS/5.0
63 Content-Type: text/html; charset=iso-8859-1
65 WWW-Authenticate: NTLM
66 WWW-Authenticate: Basic realm="testrealm"
68 This is not the real page!
72 HTTP/1.1 401 NTLM intermediate (2)
73 Server: Microsoft-IIS/5.0
74 Content-Type: text/html; charset=iso-8859-1
76 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
78 This is still not the real page!
82 HTTP/1.1 401 Sorry wrong password (2)
83 Server: Microsoft-IIS/5.0
84 Content-Type: text/html; charset=iso-8859-1
86 WWW-Authenticate: Basic realm="testrealm"
87 WWW-Authenticate: NTLM
89 This is a bad password page!
92 <!-- Fourth request has Basic auth, wrong password -->
94 HTTP/1.1 401 Sorry wrong password (3)
95 Server: Microsoft-IIS/5.0
96 Content-Type: text/html; charset=iso-8859-1
98 WWW-Authenticate: NTLM
99 WWW-Authenticate: Basic realm="testrealm"
101 This is a bad password page!
104 <!-- Fifth request has Basic auth, right password -->
106 HTTP/1.1 200 Things are fine in server land (2)
107 Server: Microsoft-IIS/5.0
108 Content-Type: text/html; charset=iso-8859-1
111 Finally, this is the real page!
115 HTTP/1.1 401 NTLM intermediate
116 Server: Microsoft-IIS/5.0
117 Content-Type: text/html; charset=iso-8859-1
119 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
121 HTTP/1.1 401 Sorry wrong password
122 Server: Microsoft-IIS/5.0
123 Content-Type: text/html; charset=iso-8859-1
125 WWW-Authenticate: Basic realm="testrealm"
126 WWW-Authenticate: NTLM
128 This is a bad password page!
129 HTTP/1.1 200 Things are fine in server land
130 Server: Microsoft-IIS/5.0
131 Content-Type: text/html; charset=iso-8859-1
134 Finally, this is the real page!
135 HTTP/1.1 401 NTLM intermediate (2)
136 Server: Microsoft-IIS/5.0
137 Content-Type: text/html; charset=iso-8859-1
139 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
141 HTTP/1.1 401 Sorry wrong password (2)
142 Server: Microsoft-IIS/5.0
143 Content-Type: text/html; charset=iso-8859-1
145 WWW-Authenticate: Basic realm="testrealm"
146 WWW-Authenticate: NTLM
148 This is a bad password page!
149 HTTP/1.1 401 Sorry wrong password (3)
150 Server: Microsoft-IIS/5.0
151 Content-Type: text/html; charset=iso-8859-1
153 WWW-Authenticate: NTLM
154 WWW-Authenticate: Basic realm="testrealm"
156 This is a bad password page!
157 HTTP/1.1 200 Things are fine in server land (2)
158 Server: Microsoft-IIS/5.0
159 Content-Type: text/html; charset=iso-8859-1
162 Finally, this is the real page!
181 HTTP authorization retry (NTLM switching to Basic)
184 # we force our own host name, in order to make the test machine independent
185 CURL_GETHOSTNAME=curlhost
186 # we try to use the LD_PRELOAD hack, if not a debug build
187 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
190 http://%HOSTIP:%HTTPPORT/2029 ntlm basic
197 # Verify data after the test has been "shot"
203 GET /20290100 HTTP/1.1
204 Host: %HOSTIP:%HTTPPORT
205 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
208 GET /20290100 HTTP/1.1
209 Host: %HOSTIP:%HTTPPORT
210 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyY3VybGhvc3Q=
213 GET /20290200 HTTP/1.1
214 Host: %HOSTIP:%HTTPPORT
215 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
218 GET /20290300 HTTP/1.1
219 Host: %HOSTIP:%HTTPPORT
220 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
223 GET /20290300 HTTP/1.1
224 Host: %HOSTIP:%HTTPPORT
225 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyY3VybGhvc3Q=
228 GET /20290400 HTTP/1.1
229 Host: %HOSTIP:%HTTPPORT
230 Authorization: Basic dGVzdHVzZXI6d3JvbmdwYXNz
233 GET /20290500 HTTP/1.1
234 Host: %HOSTIP:%HTTPPORT
235 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=