xref: /curl/tests/data/test1040 (revision 3fd80c7b)
1<testcase>
2# Similar to test92
3<info>
4<keywords>
5HTTP
6HTTP GET
7Resume
8</keywords>
9</info>
10
11# Server-side
12<reply>
13<data>
14HTTP/1.1 416 Invalid range
15Connection: close
16Content-Length: 0
17
18</data>
19
20# The file data that exists at the start of the test must be included in
21# the verification.
22<datacheck>
23012345678
24012345678
25012345678
26012345678
27012345678
28012345678
29012345678
30012345678
31012345678
32012345678
33HTTP/1.1 416 Invalid range
34Connection: close
35Content-Length: 0
36
37</datacheck>
38
39</reply>
40
41# Client-side
42<client>
43<server>
44http
45</server>
46<name>
47HTTP GET with resume from end of entirely-downloaded file
48</name>
49<command>
50http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C -
51</command>
52<file name="%LOGDIR/curl%TESTNUMBER.out">
53012345678
54012345678
55012345678
56012345678
57012345678
58012345678
59012345678
60012345678
61012345678
62012345678
63</file>
64</client>
65
66# Verify data after the test has been "shot"
67<verify>
68<protocol>
69GET /%TESTNUMBER HTTP/1.1
70Host: %HOSTIP:%HTTPPORT
71Range: bytes=100-
72User-Agent: curl/%VERSION
73Accept: */*
74
75</protocol>
76</verify>
77</testcase>
78