xref: /curl/tests/data/test1058 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6Content-Range
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data>
13HTTP/1.1 206 Partial Content
14Date: Thu, 31 Jul 2008 13:41:09 GMT
15Accept-Ranges: bytes
16Content-Length: 101
17Content-Range: bytes 100-200/201
18Connection: close
19Content-Type: text/html
20
21..partial data returned from the
22server as a result of setting an explicit byte range
23in the request
24</data>
25</reply>
26
27# Client-side
28<client>
29<server>
30http
31</server>
32<name>
33HTTP range relative to end of file
34</name>
35<command>
36http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -r -101
37</command>
38</client>
39
40# Verify data after the test has been "shot"
41<verify>
42<protocol>
43GET /want/%TESTNUMBER HTTP/1.1
44Host: %HOSTIP:%HTTPPORT
45Range: bytes=-101
46User-Agent: curl/%VERSION
47Accept: */*
48
49</protocol>
50</verify>
51</testcase>
52