Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 Resume
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 206 Partial Content
     14 Date: Mon, 13 Nov 2007 13:41:09 GMT
     15 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     16 Accept-Ranges: bytes
     17 Content-Length: 60
     18 Content-Range: bytes 40-99/100
     19 
     20 012345678
     21 012345678
     22 012345678
     23 012345678
     24 012345678
     25 012345678
     26 </data>
     27 
     28 # The file data that exists at the start of the test must be included in
     29 # the verification.
     30 <datacheck>
     31 012345678
     32 012345678
     33 012345678
     34 012345678
     35 HTTP/1.1 206 Partial Content
     36 Date: Mon, 13 Nov 2007 13:41:09 GMT
     37 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     38 Accept-Ranges: bytes
     39 Content-Length: 60
     40 Content-Range: bytes 40-99/100
     41 
     42 012345678
     43 012345678
     44 012345678
     45 012345678
     46 012345678
     47 012345678
     48 </datacheck>
     49 
     50 </reply>
     51 
     52 # Client-side
     53 <client>
     54 <server>
     55 http
     56 </server>
     57  <name>
     58 HTTP GET with resume from end of file
     59  </name>
     60  <command>
     61 http://%HOSTIP:%HTTPPORT/1043 -C -
     62 </command>
     63 <file name="log/curl1043.out">
     64 012345678
     65 012345678
     66 012345678
     67 012345678
     68 </file>
     69 </client>
     70 
     71 # Verify data after the test has been "shot"
     72 <verify>
     73 <strip>
     74 ^User-Agent:.*
     75 </strip>
     76 <protocol>
     77 GET /1043 HTTP/1.1
     78 Host: %HOSTIP:%HTTPPORT
     79 Range: bytes=40-
     80 Accept: */*
     81 
     82 </protocol>
     83 </verify>
     84 </testcase>
     85