xref: /curl/tests/data/test12 (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: Mon, 13 Nov 2000 13:41:09 GMT
15Server: Apache/1.3.11 (Unix) PHP/3.0.14
16Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
17ETag: "21025-dc7-39462498"
18Accept-Ranges: bytes
19Content-Length: 101
20Content-Range: bytes 100-200/3527
21Connection: close
22Content-Type: text/html
23
24..partial data returned from the
25server as a result of setting an explicit byte range
26in the request
27</data>
28</reply>
29
30# Client-side
31<client>
32<server>
33http
34</server>
35<name>
36HTTP range support
37</name>
38<command>
39http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -r 100-200
40</command>
41</client>
42
43# Verify data after the test has been "shot"
44<verify>
45<protocol>
46GET /want/%TESTNUMBER HTTP/1.1
47Host: %HOSTIP:%HTTPPORT
48Range: bytes=100-200
49User-Agent: curl/%VERSION
50Accept: */*
51
52</protocol>
53</verify>
54</testcase>
55