• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2# also verified by 1156 in libcurl API terms
3
4<info>
5<keywords>
6HTTP
7HTTP GET
8Resume
9</keywords>
10</info>
11
12# Server-side
13<reply>
14<data>
15HTTP/1.1 416 Invalid range
16Connection: close
17Content-Length: 0
18
19</data>
20
21# The file data that exists at the start of the test must be included in
22# the verification.
23<datacheck>
24012345678
25012345678
26012345678
27012345678
28012345678
29012345678
30012345678
31012345678
32012345678
33012345678
34HTTP/1.1 416 Invalid range
35Connection: close
36Content-Length: 0
37
38</datacheck>
39
40</reply>
41
42# Client-side
43<client>
44<server>
45http
46</server>
47 <name>
48-f and resume transfer of an entirely-downloaded file
49 </name>
50 <command>
51http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C - -f
52</command>
53<file name="log/curl%TESTNUMBER.out">
54012345678
55012345678
56012345678
57012345678
58012345678
59012345678
60012345678
61012345678
62012345678
63012345678
64</file>
65</client>
66
67# Verify data after the test has been "shot"
68<verify>
69<protocol>
70GET /%TESTNUMBER HTTP/1.1
71Host: %HOSTIP:%HTTPPORT
72Range: bytes=100-
73User-Agent: curl/%VERSION
74Accept: */*
75
76</protocol>
77</verify>
78</testcase>
79