quickjs-tart

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

test418 (1001B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 gzip
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 <data nocheck="yes">
     13 HTTP/1.1 200 swsclose OK
     14 Content-Length: 6
     15 Transfer-Encoding: gzip
     16 Transfer-Encoding: gzip
     17 Transfer-Encoding: gzip
     18 Transfer-Encoding: gzip
     19 Transfer-Encoding: gzip
     20 Transfer-Encoding: gzip
     21 Transfer-Encoding: gzip
     22 Transfer-Encoding: gzip
     23 Transfer-Encoding: gzip
     24 
     25 -foo-
     26 </data>
     27 </reply>
     28 
     29 #
     30 # Client-side
     31 <client>
     32 <server>
     33 http
     34 </server>
     35 <features>
     36 libz
     37 </features>
     38 <name>
     39 Response with multiple Transfer-Encoding headers
     40 </name>
     41 <command>
     42 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -sS --tr-encoding
     43 </command>
     44 </client>
     45 
     46 #
     47 # Verify data after the test has been "shot"
     48 <verify>
     49 <protocol crlf="yes">
     50 GET /%TESTNUMBER HTTP/1.1
     51 Host: %HOSTIP:%HTTPPORT
     52 User-Agent: curl/%VERSION
     53 Accept: */*
     54 Connection: TE
     55 TE: gzip
     56 
     57 </protocol>
     58 
     59 # CURLE_BAD_CONTENT_ENCODING is 61
     60 <errorcode>
     61 61
     62 </errorcode>
     63 <stderr mode="text">
     64 curl: (61) Reject response due to more than 5 content encodings
     65 </stderr>
     66 </verify>
     67 </testcase>