Edited some test keywords for consistency
[platform/upstream/curl.git] / tests / data / test12
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 Content-Range
7 </keywords>
8 </info>
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.1 206 Partial Content
13 Date: Mon, 13 Nov 2000 13:41:09 GMT
14 Server: Apache/1.3.11 (Unix) PHP/3.0.14
15 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
16 ETag: "21025-dc7-39462498"
17 Accept-Ranges: bytes
18 Content-Length: 101
19 Content-Range: bytes 100-200/3527
20 Connection: close
21 Content-Type: text/html
22
23 ink="#ffffff" vlink="#cccccc">
24 <table width=100% cellspacing=0 cellpadding=0 border=0>
25  <tr> 0123456
26 </data>
27 </reply>
28
29 # Client-side
30 <client>
31 <server>
32 http
33 </server>
34  <name>
35 HTTP range support
36  </name>
37  <command>
38 http://%HOSTIP:%HTTPPORT/want/12 -r 100-200
39 </command>
40 </client>
41
42 # Verify data after the test has been "shot"
43 <verify>
44 <strip>
45 ^User-Agent:.*
46 </strip>
47 <protocol>
48 GET /want/12 HTTP/1.1\r
49 Range: bytes=100-200\r
50 Host: %HOSTIP:%HTTPPORT\r
51 Accept: */*\r
52 \r
53 </protocol>
54 </verify>
55 </testcase>