2 # Authorization is used to force curl to realize that the server is
3 # speaking HTTP 1.0. The request must be resent with the correct
4 # authorization header, but using HTTP 1.0, not 1.1.
18 HTTP/1.0 401 Authorization Required swsclose
20 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
21 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
22 WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
23 Content-Type: text/plain
27 Try again on this HTTP 1.0 server!
30 # This is supposed to be returned when the server gets a
31 # Authorization: Digest line passed-in from the client
33 HTTP/1.0 200 OK swsclose
35 Content-Type: text/plain
39 This IS the real page!
43 HTTP/1.0 401 Authorization Required swsclose
45 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
46 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
47 WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
48 Content-Type: text/plain
52 HTTP/1.0 200 OK swsclose
54 Content-Type: text/plain
58 This IS the real page!
72 Downgraded HTTP PUT to HTTP 1.0 with authorization
75 http://%HOSTIP:%HTTPPORT/1071 -T log/put1071 -u testuser:testpass --anyauth
77 <file name="log/put1071">
78 This is data we upload with PUT
81 four is the number of lines
85 # Verify data after the test has been "shot"
92 Host: %HOSTIP:%HTTPPORT
97 This is data we upload with PUT
100 four is the number of lines
102 Authorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/1071", response="df4cef6b52a30e65d472dd848d2055a1"
103 Host: %HOSTIP:%HTTPPORT
107 This is data we upload with PUT
110 four is the number of lines