quickjs-tart

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

test1457 (888B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 protocol
      6 --write-out
      7 </keywords>
      8 </info>
      9 # Server-side
     10 <reply>
     11 <data nocheck="yes">
     12 HTTP/1.1 200 OK
     13 Date: Tue, 09 Nov 2010 14:49:00 GMT
     14 Content-Length: 9
     15 Connection: close
     16 Content-Type: text/plain
     17 
     18 testdata
     19 </data>
     20 
     21 </reply>
     22 
     23 # Client-side
     24 <client>
     25 <server>
     26 http
     27 </server>
     28 
     29 <name>
     30 Check if %{stderr} and %{stdout} switch between stdout and stderr.
     31 </name>
     32 <command>
     33 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --silent --write-out 'line1%{stderr}line2%{stdout}line3'
     34 </command>
     35 </client>
     36 
     37 # Verify data
     38 <verify>
     39 <stdout nonewline="yes">
     40 HTTP/1.1 200 OK
     41 Date: Tue, 09 Nov 2010 14:49:00 GMT
     42 Content-Length: 9
     43 Connection: close
     44 Content-Type: text/plain
     45 
     46 testdata
     47 line1line3
     48 </stdout>
     49 <stderr nonewline="yes">
     50 line2
     51 </stderr>
     52 <protocol>
     53 GET /%TESTNUMBER HTTP/1.1
     54 Host: %HOSTIP:%HTTPPORT
     55 User-Agent: curl/%VERSION
     56 Accept: */*
     57 
     58 </protocol>
     59 </verify>
     60 </testcase>