4 HTTP/1.1 401 Authorization Required
\r
5 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
\r
6 WWW-Authenticate: Basic realm="foothis"
\r
7 WWW-Authenticate: Digest realm="testrealm", nonce="1053604199"
\r
8 Content-Type: text/html; charset=iso-8859-1
\r
11 This is not the real page
14 # This is supposed to be returned when the server gets a
15 # Authorization: Digest line passed-in from the client
18 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
\r
19 Content-Type: text/html; charset=iso-8859-1
\r
22 This IS the real page!
26 HTTP/1.1 401 Authorization Required
\r
27 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
\r
28 WWW-Authenticate: Basic realm="foothis"
\r
29 WWW-Authenticate: Digest realm="testrealm", nonce="1053604199"
\r
30 Content-Type: text/html; charset=iso-8859-1
\r
34 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
\r
35 Content-Type: text/html; charset=iso-8859-1
\r
38 This IS the real page!
49 HTTP with Digest *OR* Basic authorization
52 http://%HOSTIP:%HTTPPORT/72 -u testuser:testpass --anyauth
56 # Verify data after the test has been "shot"
63 User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
64 Host: 127.0.0.1:%HTTPPORT
\r
69 Authorization: Digest username="testuser", realm="testrealm", nonce="1053604199", uri="/72", response="9fcd1330377365a09bbcb33b2cbb25bd"
\r
70 User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
71 Host: 127.0.0.1:%HTTPPORT
\r