1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6compressed 7FAILURE 8</keywords> 9</info> 10# 11# Server-side 12<reply> 13<data base64="yes"> 14SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDA0IDIxOjU2OjUzIEdNVA0KU2Vy 15dmVyOiBBcGFjaGUvMS4zLjMxIChEZWJpYW4gR05VL0xpbnV4KSBtb2RfZ3ppcC8xLjMuMjYuMWEg 16UEhQLzQuMy45LTEgbW9kX3NzbC8yLjguMjAgT3BlblNTTC8wLjkuN2QgbW9kX3BlcmwvMS4yOQ0K 17VmFyeTogQWNjZXB0LUVuY29kaW5nDQpDb250ZW50LVR5cGU6IHRleHQvaHRtbDsgY2hhcnNldD1J 18U08tODg1OS0xDQpDb250ZW50LUVuY29kaW5nOiBnemlwDQpDb250ZW50LUxlbmd0aDogNDENCg0K 19CHmeq0EAA2xhbGFsYQDLycxLVTDkUsgB0UZcChCGMRcACgJxYBgAAAA= 20</data> 21 22# I removed the first three bytes of the gzip compressed contents 23 24<datacheck> 25HTTP/1.1 200 OK 26Date: Mon, 29 Nov 2004 21:56:53 GMT 27Server: 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 28Vary: Accept-Encoding 29Content-Type: text/html; charset=ISO-8859-1 30Content-Encoding: gzip 31Content-Length: 41 32 33</datacheck> 34 35</reply> 36 37# 38# Client-side 39<client> 40<features> 41libz 42</features> 43<server> 44http 45</server> 46<name> 47HTTP GET gzip compressed content with broken gzip header 48</name> 49<command> 50http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed 51</command> 52</client> 53 54# 55# Verify data after the test has been "shot" 56<verify> 57<strippart> 58s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/ 59</strippart> 60<protocol> 61GET /%TESTNUMBER HTTP/1.1 62Host: %HOSTIP:%HTTPPORT 63User-Agent: curl/%VERSION 64Accept: */* 65Accept-Encoding: xxx 66 67</protocol> 68<errorcode> 6961 70</errorcode> 71</verify> 72</testcase> 73