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