quickjs-tart

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

test57 (696B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 --write-out
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data nocheck="yes">
     13 HTTP/1.1 200 OK swsclose
     14 Funny-head: yesyes
     15 Content-Type: text/html; charset=ISO-8859-4   
     16 
     17 </data>
     18 </reply>
     19 
     20 # Client-side
     21 <client>
     22 <server>
     23 http
     24 </server>
     25 <name>
     26 HTTP content-type with spaces in
     27 </name>
     28 <command>
     29 -w "%{content_type}\n" http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/out%TESTNUMBER
     30 </command>
     31 </client>
     32 
     33 # Verify data after the test has been "shot"
     34 <verify>
     35 <stdout mode="text">
     36 text/html; charset=ISO-8859-4
     37 </stdout>
     38 <protocol>
     39 GET /%TESTNUMBER HTTP/1.1
     40 Host: %HOSTIP:%HTTPPORT
     41 User-Agent: curl/%VERSION
     42 Accept: */*
     43 
     44 </protocol>
     45 </verify>
     46 </testcase>