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
19
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
20
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
21
WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
22
Content-Type: text/plain
27
HTTP/1.1 401 Authorization Required
29
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
30
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
31
WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
32
Content-Type: text/plain
35
HTTP/1.1 401 Authorization Required
37
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
38
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
39
WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
40
Content-Type: text/plain
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
77
This is data we upload with PUT
80
four is the number of lines
82
Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
83
Host: %HOSTIP:%HTTPPORT
88
This is data we upload with PUT
91
four is the number of lines