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
\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: Basic realm="testrealm"
\r
25 This is not the real page!
29 HTTP/1.1 401 NTLM intermediate
\r
30 Server: Microsoft-IIS/5.0
\r
31 Content-Type: text/html; charset=iso-8859-1
\r
33 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
\r
35 This is still not the real page!
39 HTTP/1.1 401 Sorry wrong password
\r
40 Server: Microsoft-IIS/5.0
\r
41 Content-Type: text/html; charset=iso-8859-1
\r
43 WWW-Authenticate: Basic realm="testrealm"
\r
44 WWW-Authenticate: NTLM
\r
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
\r
52 Server: Microsoft-IIS/5.0
\r
53 Content-Type: text/html; charset=iso-8859-1
\r
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)
\r
62 Server: Microsoft-IIS/5.0
\r
63 Content-Type: text/html; charset=iso-8859-1
\r
65 WWW-Authenticate: NTLM
\r
66 WWW-Authenticate: Basic realm="testrealm"
\r
68 This is not the real page!
72 HTTP/1.1 401 NTLM intermediate (2)
\r
73 Server: Microsoft-IIS/5.0
\r
74 Content-Type: text/html; charset=iso-8859-1
\r
76 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
\r
78 This is still not the real page!
82 HTTP/1.1 401 Sorry wrong password (2)
\r
83 Server: Microsoft-IIS/5.0
\r
84 Content-Type: text/html; charset=iso-8859-1
\r
86 WWW-Authenticate: Basic realm="testrealm"
\r
87 WWW-Authenticate: NTLM
\r
89 This is a bad password page!
92 <!-- Fourth request has Basic auth, wrong password -->
94 HTTP/1.1 401 Sorry wrong password (3)
\r
95 Server: Microsoft-IIS/5.0
\r
96 Content-Type: text/html; charset=iso-8859-1
\r
98 WWW-Authenticate: NTLM
\r
99 WWW-Authenticate: Basic realm="testrealm"
\r
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)
\r
107 Server: Microsoft-IIS/5.0
\r
108 Content-Type: text/html; charset=iso-8859-1
\r
111 Finally, this is the real page!
115 HTTP/1.1 401 NTLM intermediate
\r
116 Server: Microsoft-IIS/5.0
\r
117 Content-Type: text/html; charset=iso-8859-1
\r
119 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
\r
121 HTTP/1.1 401 Sorry wrong password
\r
122 Server: Microsoft-IIS/5.0
\r
123 Content-Type: text/html; charset=iso-8859-1
\r
125 WWW-Authenticate: Basic realm="testrealm"
\r
126 WWW-Authenticate: NTLM
\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 NTLM intermediate (2)
\r
136 Server: Microsoft-IIS/5.0
\r
137 Content-Type: text/html; charset=iso-8859-1
\r
139 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
\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: Basic realm="testrealm"
\r
146 WWW-Authenticate: NTLM
\r
148 This is a bad password page!
149 HTTP/1.1 401 Sorry wrong password (3)
\r
150 Server: Microsoft-IIS/5.0
\r
151 Content-Type: text/html; charset=iso-8859-1
\r
153 WWW-Authenticate: NTLM
\r
154 WWW-Authenticate: Basic realm="testrealm"
\r
156 This is a bad password page!
157 HTTP/1.1 200 Things are fine in server land (2)
\r
158 Server: Microsoft-IIS/5.0
\r
159 Content-Type: text/html; charset=iso-8859-1
\r
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
\r
204 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
205 Host: %HOSTIP:%HTTPPORT
\r
208 GET /20290100 HTTP/1.1
\r
209 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyY3VybGhvc3Q=
\r
210 Host: %HOSTIP:%HTTPPORT
\r
213 GET /20290200 HTTP/1.1
\r
214 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
\r
215 Host: %HOSTIP:%HTTPPORT
\r
218 GET /20290300 HTTP/1.1
\r
219 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
220 Host: %HOSTIP:%HTTPPORT
\r
223 GET /20290300 HTTP/1.1
\r
224 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyY3VybGhvc3Q=
\r
225 Host: %HOSTIP:%HTTPPORT
\r
228 GET /20290400 HTTP/1.1
\r
229 Authorization: Basic dGVzdHVzZXI6d3JvbmdwYXNz
\r
230 Host: %HOSTIP:%HTTPPORT
\r
233 GET /20290500 HTTP/1.1
\r
234 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
\r
235 Host: %HOSTIP:%HTTPPORT
\r