quickjs-tart

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

test319 (1189B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 Transfer-Encoding
      7 --raw
      8 </keywords>
      9 </info>
     10 #
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 200 OK swsclose
     15 Date: Mon, 29 Nov 2004 21:56:53 GMT
     16 Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
     17 Content-Type: text/html; charset=ISO-8859-1
     18 Transfer-Encoding: gobbledigook
     19 Content-Length: 44
     20 
     21 %hex[%1f%8b%08%08%79%9e%ab%41%00%03%6c%61%6c%61%6c%61%00%cb%c9%cc%4b%55%30%e4%52%c8%01%d1%46%5c]hex%
     22 %hex[%10%86%31%17%00]hex%
     23 %hex[%02%71%60%18%00%00%00]hex%
     24 </data>
     25 
     26 <datacheck nonewline="yes">
     27 %hex[%1f%8b%08%08%79%9e%ab%41%00%03%6c%61%6c%61%6c%61%00%cb%c9%cc%4b%55%30%e4%52%c8%01%d1%46%5c]hex%
     28 %hex[%10%86%31%17%00]hex%
     29 %hex[%02%71%60%18%00%00%00]hex%
     30 </datacheck>
     31 
     32 </reply>
     33 
     34 #
     35 # Client-side
     36 <client>
     37 <server>
     38 http
     39 </server>
     40 <name>
     41 HTTP GET gobbledigook transfer-encoded data in raw mode
     42 </name>
     43  <command option="no-include">
     44 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --raw
     45  </command>
     46 </client>
     47 
     48 #
     49 # Verify data after the test has been "shot"
     50 <verify>
     51 <protocol>
     52 GET /%TESTNUMBER HTTP/1.1
     53 Host: %HOSTIP:%HTTPPORT
     54 User-Agent: curl/%VERSION
     55 Accept: */*
     56 
     57 </protocol>
     58 </verify>
     59 </testcase>