quickjs-tart

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

test2501 (923B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP POST
      6 HTTP/3
      7 HTTPS
      8 </keywords>
      9 </info>
     10 
     11 #
     12 # Server-side
     13 <reply>
     14 <data nocheck="yes">
     15 HTTP/1.1 201 OK
     16 Date: Tue, 09 Nov 2010 14:49:00 GMT
     17 Connection: close
     18 Content-Length: 0
     19 Funny-head: yesyes
     20 
     21 </data>
     22 </reply>
     23 
     24 #
     25 # Client-side
     26 <client>
     27 <features>
     28 Debug
     29 http
     30 http/3
     31 </features>
     32 <server>
     33 http/3
     34 </server>
     35 <name>
     36 HTTP/3 POST
     37 </name>
     38 <setenv>
     39 </setenv>
     40 <command>
     41 --insecure --http3 "https://%HOSTIP:%HTTP3PORT/%TESTNUMBER" -d "moo"
     42 </command>
     43 
     44 </client>
     45 
     46 #
     47 # Verify data after the test has been "shot"
     48 <verify>
     49 <stdout>
     50 HTTP/3 201 
     51 date: Tue, 09 Nov 2010 14:49:00 GMT
     52 content-length: 0
     53 funny-head: yesyes
     54 via: 1.1 nghttpx
     55 
     56 </stdout>
     57 <protocol nonewline="yes">
     58 POST https://%HOSTIP:%HTTP3PORT/2501 HTTP/1.1
     59 Host: %HOSTIP:%HTTP3PORT
     60 User-Agent: curl/%VERSION
     61 Accept: */*
     62 Content-Length: 3
     63 Content-Type: application/x-www-form-urlencoded
     64 Via: 3 nghttpx
     65 
     66 moo
     67 </protocol>
     68 </verify>
     69 </testcase>