Convert (most of) the test data files into genuine XML. A handful still
[platform/upstream/curl.git] / tests / data / test194
1 <testcase>
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 416 Requested Range Not Satisfiable swsclose\r
6 Date: Fri, 24 Oct 2003 21:33:12 GMT\r
7 Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.3.1\r
8 Last-Modified: Fri, 24 Oct 2003 18:01:23 GMT\r
9 ETag: "ab57a-507-3f9968f3"\r
10 Accept-Ranges: bytes\r
11 Content-Length: 87\r
12 Content-Range: bytes */87\r
13 Content-Type: image/gif\r
14 Connection: close\r
15 \r
16 </data>
17
18 </reply>
19
20 # Client-side
21 <client>
22 <server>
23 http
24 </server>
25  <name>
26 HTTP resume transfer with the whole file already downloaded and --fail
27  </name>
28  <command>
29 http://%HOSTIP:%HTTPPORT/want/194 -C 87 --fail
30 </command>
31 </client>
32
33 # Verify data after the test has been "shot"
34 <verify>
35 <strip>
36 ^User-Agent:.*
37 </strip>
38 <protocol>
39 GET /want/194 HTTP/1.1\r
40 Range: bytes=87-\r
41 Host: 127.0.0.1:%HTTPPORT\r
42 Accept: */*\r
43 \r
44 </protocol>
45
46 </verify>
47 </testcase>