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