quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test12 (918B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 Content-Range
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 206 Partial Content
     14 Date: Mon, 13 Nov 2000 13:41:09 GMT
     15 Server: Apache/1.3.11 (Unix) PHP/3.0.14
     16 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     17 ETag: "21025-dc7-39462498"
     18 Accept-Ranges: bytes
     19 Content-Length: 101
     20 Content-Range: bytes 100-200/3527
     21 Connection: close
     22 Content-Type: text/html
     23 
     24 ..partial data returned from the
     25 server as a result of setting an explicit byte range
     26 in the request
     27 </data>
     28 </reply>
     29 
     30 # Client-side
     31 <client>
     32 <server>
     33 http
     34 </server>
     35 <name>
     36 HTTP range support
     37 </name>
     38 <command>
     39 http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -r 100-200
     40 </command>
     41 </client>
     42 
     43 # Verify data after the test has been "shot"
     44 <verify>
     45 <protocol>
     46 GET /want/%TESTNUMBER HTTP/1.1
     47 Host: %HOSTIP:%HTTPPORT
     48 Range: bytes=100-200
     49 User-Agent: curl/%VERSION
     50 Accept: */*
     51 
     52 </protocol>
     53 </verify>
     54 </testcase>