Home | History | Annotate | Download | only in data
      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
     16 Date: Sat, 24 Apr 2004 09:24:49 GMT
     17 Server: Apache/1.3.29 (Unix) mod_throttle/3.1.2 PHP/4.3.4 mod_fastcgi/2.4.0
     18 Last-Modified: Tue, 23 Mar 2004 08:23:14 GMT
     19 ETag: "53814a-ec5-405ff3f2"
     20 Accept-Ranges: bytes
     21 Content-Length: 187
     22 Content-Type: multipart/byteranges; boundary=408a326132c
     23 
     24 --408a326132c
     25 Content-type: text/html
     26 Content-range: bytes 0-10/3781
     27 
     28 {html}
     29 {hea
     30 
     31 --408a326132c
     32 Content-type: text/html
     33 Content-range: bytes 12-15/3781
     34 
     35 }
     36 {t
     37 
     38 --408a326132c--
     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
     62 Host: %HOSTIP:%HTTPPORT
     63 Range: bytes=0-10,12-15
     64 Accept: */*
     65 
     66 </protocol>
     67 </verify>
     68 </testcase>
     69