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