• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6Resume
7FAILURE
8</keywords>
9</info>
10
11# Server-side
12<reply>
13# Some servers (e.g. Apache 1.2) respond this way to an invalid byte range
14<data>
15HTTP/1.1 200 OK
16Connection: close
17Content-Length: 100
18Content-Type: text/plain
19
20012345678
21012345678
22012345678
23012345678
24012345678
25012345678
26012345678
27012345678
28012345678
29012345678
30</data>
31
32# The file data that exists at the start of the test must be included in
33# the verification.
34<datacheck>
35012345678
36012345678
37012345678
38012345678
39012345678
40012345678
41012345678
42012345678
43012345678
44012345678
45HTTP/1.1 200 OK
46Connection: close
47Content-Length: 100
48Content-Type: text/plain
49
50</datacheck>
51</reply>
52
53# Client-side
54<client>
55<server>
56http
57</server>
58 <name>
59HTTP GET beyond end of entirely-downloaded file, no server resume
60 </name>
61 <command>
62http://%HOSTIP:%HTTPPORT/1042 -C 200
63</command>
64<file name="log/curl1042.out">
65012345678
66012345678
67012345678
68012345678
69012345678
70012345678
71012345678
72012345678
73012345678
74012345678
75</file>
76</client>
77
78# Verify data after the test has been "shot"
79<verify>
80<errorcode>
8133
82</errorcode>
83<strip>
84^User-Agent:.*
85</strip>
86<protocol>
87GET /1042 HTTP/1.1
88Host: %HOSTIP:%HTTPPORT
89Range: bytes=200-
90Accept: */*
91
92</protocol>
93</verify>
94</testcase>
95