13 # The test server provides no way to respond differently to a subsequent
14 # Basic authenticated request (we really want to respond with 200 for
15 # the second), so just respond with 401 for both and let curl deal with it.
17 HTTP/1.1 401 Authorization Required
\r
19 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
\r
20 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
\r
21 WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
\r
22 Content-Type: text/plain
\r
27 HTTP/1.1 401 Authorization Required
\r
29 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
\r
30 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
\r
31 WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
\r
32 Content-Type: text/plain
\r
35 HTTP/1.1 401 Authorization Required
\r
37 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
\r
38 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
\r
39 WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
\r
40 Content-Type: text/plain
\r
52 HTTP PUT with --anyauth authorization (picking Basic)
55 http://%HOSTIP:%HTTPPORT/1075 -T log/put1075 -u testuser:testpass --anyauth
57 <file name="log/put1075">
58 This is data we upload with PUT
61 four is the number of lines
65 # Verify data after the test has been "shot"
72 Host: %HOSTIP:%HTTPPORT
\r
75 Expect: 100-continue
\r
77 This is data we upload with PUT
80 four is the number of lines
82 Host: %HOSTIP:%HTTPPORT
\r
83 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
\r
86 Expect: 100-continue
\r
88 This is data we upload with PUT
91 four is the number of lines