2
# Authorization is used to force curl to realize that the server is
3
# speaking HTTP 1.0. The request is impossible to satisfy with HTTP 1.0
4
# because chunked encoding is unavailable, so the request must fail.
12
chunked Transfer-Encoding
19
HTTP/1.0 401 Authorization Required swsclose
21
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
22
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
23
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
24
Content-Type: text/plain
40
HTTP chunked PUT to HTTP 1.0 server with authorization
43
http://%HOSTIP:%HTTPPORT/1072 -T - -u testuser:testpass --anyauth
46
This is data we upload with PUT
47
it comes from stdin so MUST be sent
49
which is impossible in HTTP/1.0
53
# Verify data after the test has been "shot"
63
Host: %HOSTIP:%HTTPPORT
65
Transfer-Encoding: chunked
69
This is data we upload with PUT
70
it comes from stdin so MUST be sent
72
which is impossible in HTTP/1.0