quickjs-tart

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

test474 (857B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 -w
      5 --write-out
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 <data crlf="yes" nocheck="yes">
     13 HTTP/1.1 301 OK
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Content-Length: 0
     16 Connection: close
     17 Content-Type: text/html
     18 Location: https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0002
     19 
     20 </data>
     21 <data2 crlf="yes" nocheck="yes">
     22 HTTP/1.1 200 OK
     23 Date: Tue, 09 Nov 2010 14:49:00 GMT
     24 Content-Length: 0
     25 Connection: close
     26 
     27 </data2>
     28 </reply>
     29 
     30 #
     31 # Client-side
     32 <client>
     33 <server>
     34 http
     35 https
     36 </server>
     37 <name>
     38 -w urle.scheme after HTTP to HTTPS redirect
     39 </name>
     40 <command option="no-include">
     41 --insecure -L http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_redirects} %{url_effective} %{urle.scheme}\n"
     42 </command>
     43 </client>
     44 
     45 #
     46 # Verify data after the test has been "shot"
     47 <verify>
     48 <stdout>
     49 1 https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0002 https
     50 </stdout>
     51 </verify>
     52 </testcase>