quickjs-tart

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

test1496 (749B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 chunked Transfer-Encoding
      7 DELAY
      8 </keywords>
      9 </info>
     10 #
     11 # Server-side
     12 <reply>
     13 <data crlf="yes" nocheck="yes">
     14 HTTP/1.1 200 funky chunky!
     15 Server: fakeit/0.9 fakeitbad/1.0
     16 Transfer-Encoding: gzip, chunked
     17 Content-Length: 19
     18 
     19 stuff server sends
     20 </data>
     21 
     22 </reply>
     23 
     24 #
     25 # Client-side
     26 <client>
     27 <server>
     28 http
     29 </server>
     30 <name>
     31 HTTP GET with gzip + chunked transfer-encoding without being asked
     32 </name>
     33 <command>
     34 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
     35 </command>
     36 </client>
     37 
     38 #
     39 # Verify data after the test has been "shot"
     40 <verify>
     41 <protocol>
     42 GET /%TESTNUMBER HTTP/1.1
     43 Host: %HOSTIP:%HTTPPORT
     44 User-Agent: curl/%VERSION
     45 Accept: */*
     46 
     47 </protocol>
     48 <errorcode>
     49 61
     50 </errorcode>
     51 </verify>
     52 
     53 </testcase>