| <?xml version="1.0" encoding="US-ASCII"?> |
| <testcase> |
| <info> |
| <keywords> |
| HTTP |
| HTTP GET |
| compressed |
| FAILURE |
| </keywords> |
| </info> |
| # Server-side |
| <reply> |
| # this brotli chunk has three bytes removed from the beginning and is cut off |
| <data crlf="headers"> |
| HTTP/1.1 200 OK |
| Date: Mon, 29 Nov 2004 21:56:53 GMT |
| 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 |
| Vary: Accept-Encoding |
| Content-Type: text/html; charset=ISO-8859-1 |
| Content-Encoding: br |
| Content-Length: 1056 |
| |
| %hex[%00%9c%05%76%1b%5d%81%a4%3c%8b%e9%99%06%83%bf%97]hex% |
| %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% |
| </data> |
| |
| <datacheck crlf="headers"> |
| HTTP/1.1 200 OK |
| Date: Mon, 29 Nov 2004 21:56:53 GMT |
| 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 |
| Vary: Accept-Encoding |
| Content-Type: text/html; charset=ISO-8859-1 |
| Content-Encoding: br |
| Content-Length: 1056 |
| |
| </datacheck> |
| |
| </reply> |
| |
| # Client-side |
| <client> |
| <features> |
| brotli |
| </features> |
| <server> |
| http |
| </server> |
| <name> |
| HTTP GET brotli compressed content with broken header |
| </name> |
| <command> |
| http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed |
| </command> |
| </client> |
| |
| # Verify data after the test has been "shot" |
| <verify> |
| <strippart> |
| s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/ |
| </strippart> |
| <protocol crlf="headers"> |
| GET /%TESTNUMBER HTTP/1.1 |
| Host: %HOSTIP:%HTTPPORT |
| User-Agent: curl/%VERSION |
| Accept: */* |
| Accept-Encoding: xxx |
| |
| </protocol> |
| <errorcode> |
| 61 |
| </errorcode> |
| </verify> |
| </testcase> |