quickjs-tart

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

test1426 (1191B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 binary-stdout
      6 </keywords>
      7 </info>
      8 
      9 <reply>
     10 <data nocheck="yes">
     11 HTTP/1.1 200 OK
     12 Date: Tue, 09 Nov 2010 14:49:00 GMT
     13 Server: test-server/fake
     14 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     15 ETag: 21025-dc7-39462498
     16 Accept-Ranges: bytes
     17 Content-Length: 5
     18 Connection: close
     19 Content-Type: text/html
     20 Funny-head: yesyes
     21 
     22 %hex[%00]hex%1234
     23 </data>
     24 
     25 </reply>
     26 
     27 #
     28 # Client-side
     29 <client>
     30 <server>
     31 http
     32 </server>
     33 
     34 # this test needs to be a debug build in order to fake it being a TTY output
     35 <features>
     36 Debug
     37 </features>
     38 <setenv>
     39 CURL_ISATTY=yes
     40 </setenv>
     41 <name>
     42 Okay binary output to terminal
     43 </name>
     44 <command>
     45 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --output -
     46 </command>
     47 </client>
     48 
     49 #
     50 # Verify data after the test has been "shot"
     51 <verify>
     52 <protocol>
     53 GET /%TESTNUMBER HTTP/1.1
     54 Host: %HOSTIP:%HTTPPORT
     55 User-Agent: curl/%VERSION
     56 Accept: */*
     57 
     58 </protocol>
     59 <stdout nonewline="yes">
     60 HTTP/1.1 200 OK
     61 Date: Tue, 09 Nov 2010 14:49:00 GMT
     62 Server: test-server/fake
     63 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     64 ETag: 21025-dc7-39462498
     65 Accept-Ranges: bytes
     66 Content-Length: 5
     67 Connection: close
     68 Content-Type: text/html
     69 Funny-head: yesyes
     70 
     71 %hex[%00]hex%1234
     72 </stdout>
     73 </verify>
     74 </testcase>