quickjs-tart

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

test33 (790B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP PUT
      6 Resume
      7 Content-Range
      8 </keywords>
      9 </info>
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 200 OK swsclose
     14 
     15 </data>
     16 </reply>
     17 
     18 # Client-side
     19 <client>
     20 <server>
     21 http
     22 </server>
     23 <name>
     24 HTTP PUT with resume
     25 </name>
     26 <file name="%LOGDIR/test%TESTNUMBER.txt">
     27 012345678
     28 012345678
     29 012345678
     30 012345678
     31 012345678
     32 012345678
     33 012345678
     34 012345678
     35 012345678
     36 012345678
     37 </file>
     38 <command>
     39 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T%LOGDIR/test%TESTNUMBER.txt -C 50
     40 </command>
     41 </client>
     42 
     43 # Verify data after the test has been "shot"
     44 <verify>
     45 <protocol>
     46 PUT /%TESTNUMBER HTTP/1.1
     47 Host: %HOSTIP:%HTTPPORT
     48 Content-Range: bytes 50-99/100
     49 User-Agent: curl/%VERSION
     50 Accept: */*
     51 Content-Length: 50
     52 
     53 012345678
     54 012345678
     55 012345678
     56 012345678
     57 012345678
     58 </protocol>
     59 </verify>
     60 </testcase>