Convert (most of) the test data files into genuine XML. A handful still
[platform/upstream/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.
5 <reply>
6 <data>
7 HTTP/1.1 206 Partial Content swsclose\r
8 Date: Sat, 24 Apr 2004 09:24:49 GMT\r
9 Server: Apache/1.3.29 (Unix) mod_throttle/3.1.2 PHP/4.3.4 mod_fastcgi/2.4.0\r
10 Last-Modified: Tue, 23 Mar 2004 08:23:14 GMT\r
11 ETag: "53814a-ec5-405ff3f2"\r
12 Accept-Ranges: bytes\r
13 Content-Length: 187\r
14 Content-Type: multipart/byteranges; boundary=408a326132c\r
15 \r
16 --408a326132c\r
17 Content-type: text/html\r
18 Content-range: bytes 0-10/3781\r
19 \r
20 <html>
21 <hea
22 \r
23 --408a326132c\r
24 Content-type: text/html\r
25 Content-range: bytes 12-15/3781\r
26 \r
27 >
28 <t
29 \r
30 --408a326132c--\r
31 </data>
32 </reply>
33
34 # Client-side
35 <client>
36 <server>
37 http
38 </server>
39  <name>
40 HTTP range with multiple ranges
41  </name>
42  <command>
43 http://%HOSTIP:%HTTPPORT/want/164 -r 0-10,12-15
44 </command>
45 </client>
46
47 # Verify data after the test has been "shot"
48 <verify>
49 <strip>
50 ^User-Agent:.*
51 </strip>
52 <protocol>
53 GET /want/164 HTTP/1.1\r
54 Range: bytes=0-10,12-15\r
55 Host: 127.0.0.1:%HTTPPORT\r
56 Accept: */*\r
57 \r
58 </protocol>
59 </verify>
60 </testcase>