xref: /curl/tests/data/test1043 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6Resume
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data>
13HTTP/1.1 206 Partial Content
14Date: Mon, 13 Nov 2007 13:41:09 GMT
15Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
16Accept-Ranges: bytes
17Content-Length: 60
18Content-Range: bytes 40-99/100
19
20012345678
21012345678
22012345678
23012345678
24012345678
25012345678
26</data>
27
28# The file data that exists at the start of the test must be included in
29# the verification.
30<datacheck>
31012345678
32012345678
33012345678
34012345678
35HTTP/1.1 206 Partial Content
36Date: Mon, 13 Nov 2007 13:41:09 GMT
37Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
38Accept-Ranges: bytes
39Content-Length: 60
40Content-Range: bytes 40-99/100
41
42012345678
43012345678
44012345678
45012345678
46012345678
47012345678
48</datacheck>
49
50</reply>
51
52# Client-side
53<client>
54<server>
55http
56</server>
57<name>
58HTTP GET with resume from end of file
59</name>
60<command>
61http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C -
62</command>
63<file name="%LOGDIR/curl%TESTNUMBER.out">
64012345678
65012345678
66012345678
67012345678
68</file>
69</client>
70
71# Verify data after the test has been "shot"
72<verify>
73<protocol>
74GET /%TESTNUMBER HTTP/1.1
75Host: %HOSTIP:%HTTPPORT
76Range: bytes=40-
77User-Agent: curl/%VERSION
78Accept: */*
79
80</protocol>
81</verify>
82</testcase>
83