quickjs-tart

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

test1273 (1107B)


      1 <testcase>
      2 # also verified by 1156 in libcurl API terms
      3 
      4 <info>
      5 <keywords>
      6 HTTP
      7 HTTP GET
      8 Resume
      9 </keywords>
     10 </info>
     11 
     12 # Server-side
     13 <reply>
     14 <data>
     15 HTTP/1.1 416 Invalid range
     16 Connection: close
     17 Content-Length: 0
     18 
     19 </data>
     20 
     21 # The file data that exists at the start of the test must be included in
     22 # the verification.
     23 <datacheck>
     24 012345678
     25 012345678
     26 012345678
     27 012345678
     28 012345678
     29 012345678
     30 012345678
     31 012345678
     32 012345678
     33 012345678
     34 HTTP/1.1 416 Invalid range
     35 Connection: close
     36 Content-Length: 0
     37 
     38 </datacheck>
     39 
     40 </reply>
     41 
     42 # Client-side
     43 <client>
     44 <server>
     45 http
     46 </server>
     47 <killserver>
     48 http
     49 </killserver>
     50 <name>
     51 -f and resume transfer of an entirely-downloaded file
     52 </name>
     53 <command>
     54 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C - -f
     55 </command>
     56 <file name="%LOGDIR/curl%TESTNUMBER.out">
     57 012345678
     58 012345678
     59 012345678
     60 012345678
     61 012345678
     62 012345678
     63 012345678
     64 012345678
     65 012345678
     66 012345678
     67 </file>
     68 </client>
     69 
     70 # Verify data after the test has been "shot"
     71 <verify>
     72 <protocol>
     73 GET /%TESTNUMBER HTTP/1.1
     74 Host: %HOSTIP:%HTTPPORT
     75 Range: bytes=100-
     76 User-Agent: curl/%VERSION
     77 Accept: */*
     78 
     79 </protocol>
     80 </verify>
     81 </testcase>