quickjs-tart

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

test1042 (1284B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 Resume
      7 FAILURE
      8 </keywords>
      9 </info>
     10 
     11 # Server-side
     12 <reply>
     13 # Some servers (e.g. Apache 1.2) respond this way to an invalid byte range
     14 <data>
     15 HTTP/1.1 200 OK
     16 Connection: close
     17 Content-Length: 100
     18 Content-Type: text/plain
     19 
     20 012345678
     21 012345678
     22 012345678
     23 012345678
     24 012345678
     25 012345678
     26 012345678
     27 012345678
     28 012345678
     29 012345678
     30 </data>
     31 
     32 # The file data that exists at the start of the test must be included in
     33 # the verification.
     34 <datacheck>
     35 012345678
     36 012345678
     37 012345678
     38 012345678
     39 012345678
     40 012345678
     41 012345678
     42 012345678
     43 012345678
     44 012345678
     45 HTTP/1.1 200 OK
     46 Connection: close
     47 Content-Length: 100
     48 Content-Type: text/plain
     49 
     50 </datacheck>
     51 </reply>
     52 
     53 # Client-side
     54 <client>
     55 <server>
     56 http
     57 </server>
     58 <name>
     59 HTTP GET beyond end of entirely-downloaded file, no server resume
     60 </name>
     61 <command>
     62 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C 200
     63 </command>
     64 <file name="%LOGDIR/curl%TESTNUMBER.out">
     65 012345678
     66 012345678
     67 012345678
     68 012345678
     69 012345678
     70 012345678
     71 012345678
     72 012345678
     73 012345678
     74 012345678
     75 </file>
     76 </client>
     77 
     78 # Verify data after the test has been "shot"
     79 <verify>
     80 <errorcode>
     81 33
     82 </errorcode>
     83 <protocol>
     84 GET /%TESTNUMBER HTTP/1.1
     85 Host: %HOSTIP:%HTTPPORT
     86 Range: bytes=200-
     87 User-Agent: curl/%VERSION
     88 Accept: */*
     89 
     90 </protocol>
     91 </verify>
     92 </testcase>