quickjs-tart

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

test1479 (791B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP/0.9
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 200 OK
     14 Content-Length: 5
     15 
     16 Data
     17 </data>
     18 <data2>
     19 Data
     20 Data
     21 Data
     22 </data2>
     23 <datacheck>
     24 </datacheck>
     25 </reply>
     26 
     27 #
     28 # Client-side
     29 <client>
     30 <server>
     31 http
     32 </server>
     33 <name>
     34 HTTP/1.1 response followed by an HTTP/0.9 response over the same connection
     35 </name>
     36 <command>
     37 http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002
     38 </command>
     39 </client>
     40 
     41 #
     42 # Verify data after the test has been "shot"
     43 <verify>
     44 <protocol>
     45 GET /%TESTNUMBER HTTP/1.1
     46 Host: %HOSTIP:%HTTPPORT
     47 User-Agent: curl/%VERSION
     48 Accept: */*
     49 
     50 GET /%TESTNUMBER0002 HTTP/1.1
     51 Host: %HOSTIP:%HTTPPORT
     52 User-Agent: curl/%VERSION
     53 Accept: */*
     54 
     55 </protocol>
     56 # weird_server_reply
     57 <errorcode>
     58 8
     59 </errorcode>
     60 </verify>
     61 </testcase>