• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6Content-Range
7Resume
8</keywords>
9</info>
10
11# Server-side
12<reply>
13<data>
14HTTP/1.1 416 Requested Range Not Satisfiable swsclose
15Date: Fri, 24 Oct 2003 21:33:12 GMT
16Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.3.1
17Last-Modified: Fri, 24 Oct 2003 18:01:23 GMT
18ETag: "ab57a-507-3f9968f3"
19Accept-Ranges: bytes
20Content-Length: 4
21Content-Range: bytes */87
22Content-Type: image/gif
23Connection: close
24
25bad
26</data>
27
28<datacheck>
29HTTP/1.1 416 Requested Range Not Satisfiable swsclose
30Date: Fri, 24 Oct 2003 21:33:12 GMT
31Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.3.1
32Last-Modified: Fri, 24 Oct 2003 18:01:23 GMT
33ETag: "ab57a-507-3f9968f3"
34Accept-Ranges: bytes
35Content-Length: 4
36Content-Range: bytes */87
37Content-Type: image/gif
38Connection: close
39</datacheck>
40
41</reply>
42
43# Client-side
44<client>
45<server>
46http
47</server>
48 <name>
49HTTP resume transfer with the whole file already downloaded and --fail
50 </name>
51 <command>
52http://%HOSTIP:%HTTPPORT/want/194 -C 87 --fail
53</command>
54</client>
55
56# Verify data after the test has been "shot"
57<verify>
58<protocol>
59GET /want/194 HTTP/1.1
60Host: %HOSTIP:%HTTPPORT
61Range: bytes=87-
62User-Agent: curl/%VERSION
63Accept: */*
64
65</protocol>
66# CURLE_HTTP_RETURNED_ERROR
67<errorcode>
6822
69</errorcode>
70</verify>
71</testcase>
72