A minor "syntax error" in numerous test files corrected
[platform/upstream/curl.git] / tests / data / test72
1 # Server-side
2 <reply>
3 <data>
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
9 Content-Length: 26\r
10 \r
11 This is not the real page
12 </data>
13
14 # This is supposed to be returned when the server gets a
15 # Authorization: Digest line passed-in from the client
16 <data1000>
17 HTTP/1.1 200 OK\r
18 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
19 Content-Type: text/html; charset=iso-8859-1\r
20 Content-Length: 23\r
21 \r
22 This IS the real page!
23 </data1000>
24
25 <datacheck>
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
31 Content-Length: 26\r
32 \r
33 HTTP/1.1 200 OK\r
34 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
35 Content-Type: text/html; charset=iso-8859-1\r
36 Content-Length: 23\r
37 \r
38 This IS the real page!
39 </datacheck>
40
41 </reply>
42
43 # Client-side
44 <client>
45 <server>
46 http
47 </server>
48  <name>
49 HTTP with Digest *OR* Basic authorization
50  </name>
51  <command>
52 http://%HOSTIP:%HTTPPORT/72 -u testuser:testpass --anyauth
53 </command>
54 </client>
55
56 # Verify data after the test has been "shot"
57 <verify>
58 <strip>
59 ^User-Agent:.*
60 </strip>
61 <protocol>
62 GET /72 HTTP/1.1\r
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
65 Pragma: no-cache\r
66 Accept: */*\r
67 \r
68 GET /72 HTTP/1.1\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
72 Pragma: no-cache\r
73 Accept: */*\r
74 \r
75 </protocol>
76 </verify>