12 <!-- First request has Basic auth, wrong password -->
14 HTTP/1.1 401 Sorry wrong password
15 Server: Microsoft-IIS/5.0
16 Content-Type: text/html; charset=iso-8859-1
18 WWW-Authenticate: Basic realm="testrealm"
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
26 Server: Microsoft-IIS/5.0
27 Content-Type: text/html; charset=iso-8859-1
30 Finally, this is the real page!
33 <!-- Third request has Basic auth, wrong password -->
35 HTTP/1.1 401 Sorry wrong password (2)
36 Server: Microsoft-IIS/5.0
37 Content-Type: text/html; charset=iso-8859-1
39 WWW-Authenticate: Basic realm="testrealm"
41 This is a bad password page!
44 <!-- Fourth request has Basic auth, wrong password -->
46 HTTP/1.1 401 Sorry wrong password (3)
47 Server: Microsoft-IIS/5.0
48 Content-Type: text/html; charset=iso-8859-1
50 WWW-Authenticate: Basic realm="testrealm"
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)
58 Server: Microsoft-IIS/5.0
59 Content-Type: text/html; charset=iso-8859-1
62 Finally, this is the real page!
66 HTTP/1.1 401 Sorry wrong password
67 Server: Microsoft-IIS/5.0
68 Content-Type: text/html; charset=iso-8859-1
70 WWW-Authenticate: Basic realm="testrealm"
72 This is a bad password page!
73 HTTP/1.1 200 Things are fine in server land
74 Server: Microsoft-IIS/5.0
75 Content-Type: text/html; charset=iso-8859-1
78 Finally, this is the real page!
79 HTTP/1.1 401 Sorry wrong password (2)
80 Server: Microsoft-IIS/5.0
81 Content-Type: text/html; charset=iso-8859-1
83 WWW-Authenticate: Basic realm="testrealm"
85 This is a bad password page!
86 HTTP/1.1 401 Sorry wrong password (3)
87 Server: Microsoft-IIS/5.0
88 Content-Type: text/html; charset=iso-8859-1
90 WWW-Authenticate: Basic realm="testrealm"
92 This is a bad password page!
93 HTTP/1.1 200 Things are fine in server land (2)
94 Server: Microsoft-IIS/5.0
95 Content-Type: text/html; charset=iso-8859-1
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
136 Host: %HOSTIP:%HTTPPORT
137 Authorization: Basic dGVzdHVzZXI6d3JvbmdwYXNz
140 GET /20230200 HTTP/1.1
141 Host: %HOSTIP:%HTTPPORT
142 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
145 GET /20230300 HTTP/1.1
146 Host: %HOSTIP:%HTTPPORT
147 Authorization: Basic dGVzdHVzZXI6d3JvbmdwYXNz
150 GET /20230400 HTTP/1.1
151 Host: %HOSTIP:%HTTPPORT
152 Authorization: Basic dGVzdHVzZXI6d3JvbmdwYXNz
155 GET /20230500 HTTP/1.1
156 Host: %HOSTIP:%HTTPPORT
157 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=