quickjs-tart

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

test1122 (1421B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 compressed
      7 Transfer-Encoding
      8 </keywords>
      9 </info>
     10 #
     11 # Server-side
     12 <reply>
     13 <data nonewline="yes">
     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 Vary: Accept-Encoding
     18 Content-Type: text/html; charset=ISO-8859-1
     19 Transfer-Encoding: gzip
     20 Content-Length: 44
     21 
     22 %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%
     23 %hex[%10%86%31%17%00]hex%
     24 %hex[%02%71%60%18%00%00%00]hex%
     25 </data>
     26 
     27 # This ignore Content-Length
     28 <datacheck>
     29 HTTP/1.1 200 OK swsclose
     30 Date: Mon, 29 Nov 2004 21:56:53 GMT
     31 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
     32 Vary: Accept-Encoding
     33 Content-Type: text/html; charset=ISO-8859-1
     34 Transfer-Encoding: gzip
     35 Content-Length: 44
     36 
     37 line 1
     38  line 2
     39   line 3
     40 </datacheck>
     41 
     42 </reply>
     43 
     44 #
     45 # Client-side
     46 <client>
     47 <features>
     48 libz
     49 </features>
     50 <server>
     51 http
     52 </server>
     53 <name>
     54 HTTP GET gzip transfer-encoded content
     55 </name>
     56 <command>
     57 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --tr-encoding
     58 </command>
     59 </client>
     60 
     61 #
     62 # Verify data after the test has been "shot"
     63 <verify>
     64 <protocol>
     65 GET /%TESTNUMBER HTTP/1.1
     66 Host: %HOSTIP:%HTTPPORT
     67 User-Agent: curl/%VERSION
     68 Accept: */*
     69 Connection: TE
     70 TE: gzip
     71 
     72 </protocol>
     73 </verify>
     74 </testcase>