xref: /curl/tests/data/test1475 (revision 225db919)
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
18Content-Range: */100
19
20</data>
21
22# The file data that exists at the start of the test must be included in
23# the verification.
24<datacheck>
25012345678
26012345678
27012345678
28012345678
29012345678
30012345678
31012345678
32012345678
33012345678
34012345678
35HTTP/1.1 416 Invalid range
36Connection: close
37Content-Length: 0
38Content-Range: */100
39
40</datacheck>
41
42</reply>
43
44# Client-side
45<client>
46<server>
47http
48</server>
49<killserver>
50http
51</killserver>
52<name>
53-f and 416 with Content-Range: */size
54</name>
55<command>
56http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C - -f
57</command>
58<file name="%LOGDIR/curl%TESTNUMBER.out">
59012345678
60012345678
61012345678
62012345678
63012345678
64012345678
65012345678
66012345678
67012345678
68012345678
69</file>
70</client>
71
72# Verify data after the test has been "shot"
73<verify>
74<protocol>
75GET /%TESTNUMBER HTTP/1.1
76Host: %HOSTIP:%HTTPPORT
77Range: bytes=100-
78User-Agent: curl/%VERSION
79Accept: */*
80
81</protocol>
82</verify>
83</testcase>
84