• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/1043 -C -
62</command>
63<file name="log/curl1043.out">
64012345678
65012345678
66012345678
67012345678
68</file>
69</client>
70
71# Verify data after the test has been "shot"
72<verify>
73<strip>
74^User-Agent:.*
75</strip>
76<protocol>
77GET /1043 HTTP/1.1
78Host: %HOSTIP:%HTTPPORT
79Range: bytes=40-
80Accept: */*
81
82</protocol>
83</verify>
84</testcase>
85