Git init
[external/curl.git] / tests / data / test164
1 <testcase>
2 # Server-side
3 # This particular response is an exact excerpt from an actual Apache
4 # server when asked for a 0-10,12-15 range (except gt/lt changed to {}
5 # to avoid XML escaping problems).
6 <reply>
7 <data>
8 HTTP/1.1 206 Partial Content swsclose\r
9 Date: Sat, 24 Apr 2004 09:24:49 GMT\r
10 Server: Apache/1.3.29 (Unix) mod_throttle/3.1.2 PHP/4.3.4 mod_fastcgi/2.4.0\r
11 Last-Modified: Tue, 23 Mar 2004 08:23:14 GMT\r
12 ETag: "53814a-ec5-405ff3f2"\r
13 Accept-Ranges: bytes\r
14 Content-Length: 187\r
15 Content-Type: multipart/byteranges; boundary=408a326132c\r
16 \r
17 --408a326132c\r
18 Content-type: text/html\r
19 Content-range: bytes 0-10/3781\r
20 \r
21 {html}
22 {hea
23 \r
24 --408a326132c\r
25 Content-type: text/html\r
26 Content-range: bytes 12-15/3781\r
27 \r
28 }
29 {t
30 \r
31 --408a326132c--\r
32 </data>
33 </reply>
34
35 # Client-side
36 <client>
37 <server>
38 http
39 </server>
40  <name>
41 HTTP range with multiple ranges
42  </name>
43  <command>
44 http://%HOSTIP:%HTTPPORT/want/164 -r 0-10,12-15
45 </command>
46 </client>
47
48 # Verify data after the test has been "shot"
49 <verify>
50 <strip>
51 ^User-Agent:.*
52 </strip>
53 <protocol>
54 GET /want/164 HTTP/1.1\r
55 Range: bytes=0-10,12-15\r
56 Host: %HOSTIP:%HTTPPORT\r
57 Accept: */*\r
58 \r
59 </protocol>
60 </verify>
61 </testcase>