9a87d6e8b800c473cf49ad96a6cc0a9c8287eaab
[platform/upstream/curl.git] / tests / data / test1001
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP PUT
6 HTTP proxy
7 HTTP Digest auth
8 Resume
9 Content-Range
10 CUSTOMREQUEST
11 </keywords>
12 </info>
13
14 # Server-side
15 <reply>
16 <data>
17 HTTP/1.1 100 Continue\r
18 Server: Microsoft-IIS/5.0\r
19 Date: Sun, 03 Apr 2005 14:57:45 GMT\r
20 X-Powered-By: ASP.NET\r
21 \r
22 HTTP/1.1 401 authentication please swsbounce\r
23 Server: Microsoft-IIS/6.0\r
24 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"\r
25 Content-Type: text/html; charset=iso-8859-1\r
26 Content-Length: 0\r
27 \r
28 </data>
29 <data1000>
30 HTTP/1.1 200 A OK\r
31 Server: Microsoft-IIS/6.0\r
32 Content-Type: text/html; charset=iso-8859-1\r
33 Content-Length: 3\r
34 \r
35 ok
36 </data1000>
37
38 <datacheck>
39 HTTP/1.1 100 Continue\r
40 Server: Microsoft-IIS/5.0\r
41 Date: Sun, 03 Apr 2005 14:57:45 GMT\r
42 X-Powered-By: ASP.NET\r
43 \r
44 HTTP/1.1 401 authentication please swsbounce\r
45 Server: Microsoft-IIS/6.0\r
46 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"\r
47 Content-Type: text/html; charset=iso-8859-1\r
48 Content-Length: 0\r
49 \r
50 HTTP/1.1 200 A OK\r
51 Server: Microsoft-IIS/6.0\r
52 Content-Type: text/html; charset=iso-8859-1\r
53 Content-Length: 3\r
54 \r
55 ok
56 </datacheck>
57
58 </reply>
59
60 # Client-side
61 <client>
62
63 <server>
64 http
65 </server>
66  <name>
67 HTTP POST --digest with PUT and resumed upload and modified method
68  </name>
69  <command>
70 http://%HOSTIP:%HTTPPORT/1001 -u auser:apasswd --digest -T log/1001 -x  http://%HOSTIP:%HTTPPORT -C 2 -X GET
71 </command>
72 <file name="log/1001">
73 test
74 </file>
75 </client>
76
77 # Verify data after the test has been "shot"
78 <verify>
79 <strip>
80 ^User-Agent:.*
81 </strip>
82 <protocol>
83 GET http://%HOSTIP:%HTTPPORT/1001 HTTP/1.1\r
84 Content-Range: bytes 2-4/5\r
85 User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
86 Host: %HOSTIP:%HTTPPORT\r
87 Accept: */*\r
88 Proxy-Connection: Keep-Alive\r
89 Content-Length: 0\r
90 Expect: 100-continue\r
91 \r
92 GET http://%HOSTIP:%HTTPPORT/1001 HTTP/1.1\r
93 Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1001", response="6af4d89c952f4dd4cc215a6878dc499d"\r
94 Content-Range: bytes 2-4/5\r
95 Host: %HOSTIP:%HTTPPORT\r
96 Accept: */*\r
97 Proxy-Connection: Keep-Alive\r
98 Content-Length: 3\r
99 Expect: 100-continue\r
100 \r
101 st
102 </protocol>
103 </verify>
104 </testcase>