quickjs-tart

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

test2403 (1006B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP/2
      7 HTTPS
      8 -w
      9 %header
     10 </keywords>
     11 </info>
     12 
     13 #
     14 # Server-side
     15 <reply>
     16 <data nocheck="yes" crlf="yes">
     17 HTTP/1.1 200 OK
     18 Date: Tue, 09 Nov 2010 14:49:00 GMT
     19 Content-Length: 6
     20 Connection: close
     21 Content-Type: text/html
     22 Funny-head: yesyes
     23 
     24 -foo-
     25 </data>
     26 </reply>
     27 
     28 #
     29 # Client-side
     30 <client>
     31 <features>
     32 http/2
     33 SSL
     34 headers-api
     35 </features>
     36 <server>
     37 http/2
     38 </server>
     39 <name>
     40 HTTP/2 GET using %{header_json}
     41 </name>
     42 <setenv>
     43 </setenv>
     44 <command>
     45 --insecure --http2 -w '%{header_json}\n' "https://%HOSTIP:%HTTP2TLSPORT/%TESTNUMBER"
     46 </command>
     47 
     48 </client>
     49 
     50 #
     51 # Verify data after the test has been "shot"
     52 <verify>
     53 <stdout crlf="yes">
     54 HTTP/2 200 
     55 date: Tue, 09 Nov 2010 14:49:00 GMT
     56 content-length: 6
     57 content-type: text/html
     58 funny-head: yesyes
     59 server: nghttpx
     60 via: 1.1 nghttpx
     61 
     62 -foo-
     63 {"date":["Tue, 09 Nov 2010 14:49:00 GMT"],
     64 "content-length":["6"],
     65 "content-type":["text/html"],
     66 "funny-head":["yesyes"],
     67 "server":["nghttpx"],
     68 "via":["1.1 nghttpx"]
     69 }
     70 </stdout>
     71 </verify>
     72 </testcase>