test315 (1682B)
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 # this brotli chunk has three bytes removed from the beginning and is cut off 14 <data> 15 HTTP/1.1 200 OK 16 Date: Mon, 29 Nov 2004 21:56:53 GMT 17 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 18 Vary: Accept-Encoding 19 Content-Type: text/html; charset=ISO-8859-1 20 Content-Encoding: br 21 Content-Length: 1056 22 23 %hex[%00%9c%05%76%1b%5d%81%a4%3c%8b%e9%99%06%83%bf%97]hex% 24 %hex[%20%3c%ab%aa%1e%97%8f%df%c8%d5%e5%30%c8%4d%30%7b%fe%82%55%09%2e%bd%14%50%ca%58%35%6d%32%4f%32%e1%27%cc%4a%ef%da%f6%fb%cb%c5%63%f0%78%30%8a%78%f1%ff%db%2f%55%22%46%c5%f8%48%02%61%23%6c%f6%fe%77%27%c4%13%20%74%f8%66%e7%07%08%24%50%89%74%5d%4f%a5%dd%13%ad]hex% 25 </data> 26 27 <datacheck> 28 HTTP/1.1 200 OK 29 Date: Mon, 29 Nov 2004 21:56:53 GMT 30 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 31 Vary: Accept-Encoding 32 Content-Type: text/html; charset=ISO-8859-1 33 Content-Encoding: br 34 Content-Length: 1056 35 36 </datacheck> 37 38 </reply> 39 40 # 41 # Client-side 42 <client> 43 <features> 44 brotli 45 </features> 46 <server> 47 http 48 </server> 49 <name> 50 HTTP GET brotli compressed content with broken header 51 </name> 52 <command> 53 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed 54 </command> 55 </client> 56 57 # 58 # Verify data after the test has been "shot" 59 <verify> 60 <strippart> 61 s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/ 62 </strippart> 63 <protocol> 64 GET /%TESTNUMBER HTTP/1.1 65 Host: %HOSTIP:%HTTPPORT 66 User-Agent: curl/%VERSION 67 Accept: */* 68 Accept-Encoding: xxx 69 70 </protocol> 71 <errorcode> 72 61 73 </errorcode> 74 </verify> 75 </testcase>