quickjs-tart

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

test221 (1508B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 compressed
      7 FAILURE
      8 </keywords>
      9 </info>
     10 #
     11 # Server-side
     12 <reply>
     13 <data nonewline="yes">
     14 HTTP/1.1 200 OK
     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 Content-Encoding: gzip
     20 Content-Length: 41
     21 
     22 %hex[%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%0a%10%86%31%17%00]hex%
     23 %hex[%02%71%60%18%00%00%00]hex%
     24 </data>
     25 
     26 # I removed the first three bytes of the gzip compressed contents
     27 
     28 <datacheck>
     29 HTTP/1.1 200 OK
     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 Content-Encoding: gzip
     35 Content-Length: 41
     36 
     37 </datacheck>
     38 
     39 </reply>
     40 
     41 #
     42 # Client-side
     43 <client>
     44 <features>
     45 libz
     46 </features>
     47 <server>
     48 http
     49 </server>
     50 <name>
     51 HTTP GET gzip compressed content with broken gzip header
     52 </name>
     53 <command>
     54 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
     55 </command>
     56 </client>
     57 
     58 #
     59 # Verify data after the test has been "shot"
     60 <verify>
     61 <strippart>
     62 s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
     63 </strippart>
     64 <protocol>
     65 GET /%TESTNUMBER HTTP/1.1
     66 Host: %HOSTIP:%HTTPPORT
     67 User-Agent: curl/%VERSION
     68 Accept: */*
     69 Accept-Encoding: xxx
     70 
     71 </protocol>
     72 <errorcode>
     73 61
     74 </errorcode>
     75 </verify>
     76 </testcase>