12 <!-- First request has Basic auth, wrong password -->
14 HTTP/1.1 401 Sorry wrong password
\r
15 Server: Microsoft-IIS/5.0
\r
16 Content-Type: text/html; charset=iso-8859-1
\r
18 WWW-Authenticate: Basic realm="testrealm"
\r
20 This is a bad password page!
23 <!-- Second request has Basic auth, right password -->
25 HTTP/1.1 200 Things are fine in server land
\r
26 Server: Microsoft-IIS/5.0
\r
27 Content-Type: text/html; charset=iso-8859-1
\r
30 Finally, this is the real page!
33 <!-- Third request has Basic auth, wrong password -->
35 HTTP/1.1 401 Sorry wrong password (2)
\r
36 Server: Microsoft-IIS/5.0
\r
37 Content-Type: text/html; charset=iso-8859-1
\r
39 WWW-Authenticate: Basic realm="testrealm"
\r
41 This is a bad password page!
44 <!-- Fourth request has Basic auth, wrong password -->
46 HTTP/1.1 401 Sorry wrong password (3)
\r
47 Server: Microsoft-IIS/5.0
\r
48 Content-Type: text/html; charset=iso-8859-1
\r
50 WWW-Authenticate: Basic realm="testrealm"
\r
52 This is a bad password page!
55 <!-- Fifth request has Basic auth, right password -->
57 HTTP/1.1 200 Things are fine in server land (2)
\r
58 Server: Microsoft-IIS/5.0
\r
59 Content-Type: text/html; charset=iso-8859-1
\r
62 Finally, this is the real page!
66 HTTP/1.1 401 Sorry wrong password
\r
67 Server: Microsoft-IIS/5.0
\r
68 Content-Type: text/html; charset=iso-8859-1
\r
70 WWW-Authenticate: Basic realm="testrealm"
\r
72 This is a bad password page!
73 HTTP/1.1 200 Things are fine in server land
\r
74 Server: Microsoft-IIS/5.0
\r
75 Content-Type: text/html; charset=iso-8859-1
\r
78 Finally, this is the real page!
79 HTTP/1.1 401 Sorry wrong password (2)
\r
80 Server: Microsoft-IIS/5.0
\r
81 Content-Type: text/html; charset=iso-8859-1
\r
83 WWW-Authenticate: Basic realm="testrealm"
\r
85 This is a bad password 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: Basic realm="testrealm"
\r
92 This is a bad password page!
93 HTTP/1.1 200 Things are fine in server land (2)
\r
94 Server: Microsoft-IIS/5.0
\r
95 Content-Type: text/html; charset=iso-8859-1
\r
98 Finally, this is the real page!
113 HTTP authorization retry (Basic)
116 # we force our own host name, in order to make the test machine independent
117 CURL_GETHOSTNAME=curlhost
118 # we try to use the LD_PRELOAD hack, if not a debug build
119 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
122 http://%HOSTIP:%HTTPPORT/2023 basic basic
129 # Verify data after the test has been "shot"
135 GET /20230100 HTTP/1.1
\r
136 Authorization: Basic dGVzdHVzZXI6d3JvbmdwYXNz
\r
137 Host: %HOSTIP:%HTTPPORT
\r
140 GET /20230200 HTTP/1.1
\r
141 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
\r
142 Host: %HOSTIP:%HTTPPORT
\r
145 GET /20230300 HTTP/1.1
\r
146 Authorization: Basic dGVzdHVzZXI6d3JvbmdwYXNz
\r
147 Host: %HOSTIP:%HTTPPORT
\r
150 GET /20230400 HTTP/1.1
\r
151 Authorization: Basic dGVzdHVzZXI6d3JvbmdwYXNz
\r
152 Host: %HOSTIP:%HTTPPORT
\r
155 GET /20230500 HTTP/1.1
\r
156 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
\r
157 Host: %HOSTIP:%HTTPPORT
\r