]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/tests/data/test64
hello world
[icculus/iodoom3.git] / neo / curl / tests / data / test64
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 401 Authorization Required swsclose
5 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
6 WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
7 Content-Type: text/html; charset=iso-8859-1
8
9 This is not the real page
10 </data>
11
12 # This is supposed to be returned when the server gets a
13 # Authorization: Digest line passed-in from the client
14 <data1000>
15 HTTP/1.1 200 OK swsclose
16 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
17 Content-Type: text/html; charset=iso-8859-1
18
19 This IS the real page!
20 </data1000>
21
22 <datacheck>
23 HTTP/1.1 401 Authorization Required swsclose
24 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
25 WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
26 Content-Type: text/html; charset=iso-8859-1
27
28 HTTP/1.1 200 OK swsclose
29 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
30 Content-Type: text/html; charset=iso-8859-1
31
32 This IS the real page!
33 </datacheck>
34
35 </reply>
36
37 # Client-side
38 <client>
39 <server>
40 http
41 </server>
42  <name>
43 HTTP with Digest authorization
44  </name>
45  <command>
46 http://%HOSTIP:%HOSTPORT/64 -u testuser:testpass --digest
47 </command>
48 </test>
49
50 # Verify data after the test has been "shot"
51 <verify>
52 <strip>
53 ^User-Agent:.*
54 </strip>
55 <protocol>
56 GET /64 HTTP/1.1
57 Host: 127.0.0.1:8999
58 Pragma: no-cache
59 Accept: */*
60
61 GET /64 HTTP/1.1
62 Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/64", response="c55f7f30d83d774a3d2dcacf725abaca"
63 User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3
64 Host: 127.0.0.1:8999
65 Pragma: no-cache
66 Accept: */*
67
68 </protocol>
69 </verify>