quickjs-tart

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

test1164 (619B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 <data nocheck="yes" nonewline="yes">
     13 swsclose%repeat[200 x %00]%
     14 </data>
     15 </reply>
     16 
     17 #
     18 # Client-side
     19 <client>
     20 <server>
     21 http
     22 </server>
     23 <name>
     24 HTTP/0.9 GET and all zeroes
     25 </name>
     26  <command option="force-output">
     27 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w '%{size_download}\n' --http0.9
     28 </command>
     29 </client>
     30 
     31 #
     32 # Verify data after the test has been "shot"
     33 <verify>
     34 <protocol>
     35 GET /%TESTNUMBER HTTP/1.1
     36 Host: %HOSTIP:%HTTPPORT
     37 User-Agent: curl/%VERSION
     38 Accept: */*
     39 
     40 </protocol>
     41 <stdout mode="text">
     42 208
     43 </stdout>
     44 </verify>
     45 </testcase>