xref: /third_party/curl/tests/data/test221 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP GET
613498266Sopenharmony_cicompressed
713498266Sopenharmony_ciFAILURE
813498266Sopenharmony_ci</keywords>
913498266Sopenharmony_ci</info>
1013498266Sopenharmony_ci#
1113498266Sopenharmony_ci# Server-side
1213498266Sopenharmony_ci<reply>
1313498266Sopenharmony_ci<data base64="yes">
1413498266Sopenharmony_ciSFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDA0IDIxOjU2OjUzIEdNVA0KU2Vy
1513498266Sopenharmony_cidmVyOiBBcGFjaGUvMS4zLjMxIChEZWJpYW4gR05VL0xpbnV4KSBtb2RfZ3ppcC8xLjMuMjYuMWEg
1613498266Sopenharmony_ciUEhQLzQuMy45LTEgbW9kX3NzbC8yLjguMjAgT3BlblNTTC8wLjkuN2QgbW9kX3BlcmwvMS4yOQ0K
1713498266Sopenharmony_ciVmFyeTogQWNjZXB0LUVuY29kaW5nDQpDb250ZW50LVR5cGU6IHRleHQvaHRtbDsgY2hhcnNldD1J
1813498266Sopenharmony_ciU08tODg1OS0xDQpDb250ZW50LUVuY29kaW5nOiBnemlwDQpDb250ZW50LUxlbmd0aDogNDENCg0K
1913498266Sopenharmony_ciCHmeq0EAA2xhbGFsYQDLycxLVTDkUsgB0UZcChCGMRcACgJxYBgAAAA=
2013498266Sopenharmony_ci</data>
2113498266Sopenharmony_ci
2213498266Sopenharmony_ci# I removed the first three bytes of the gzip compressed contents
2313498266Sopenharmony_ci
2413498266Sopenharmony_ci<datacheck>
2513498266Sopenharmony_ciHTTP/1.1 200 OK
2613498266Sopenharmony_ciDate: Mon, 29 Nov 2004 21:56:53 GMT
2713498266Sopenharmony_ciServer: 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
2813498266Sopenharmony_ciVary: Accept-Encoding
2913498266Sopenharmony_ciContent-Type: text/html; charset=ISO-8859-1
3013498266Sopenharmony_ciContent-Encoding: gzip
3113498266Sopenharmony_ciContent-Length: 41
3213498266Sopenharmony_ci
3313498266Sopenharmony_ci</datacheck>
3413498266Sopenharmony_ci
3513498266Sopenharmony_ci</reply>
3613498266Sopenharmony_ci
3713498266Sopenharmony_ci#
3813498266Sopenharmony_ci# Client-side
3913498266Sopenharmony_ci<client>
4013498266Sopenharmony_ci<features>
4113498266Sopenharmony_cilibz
4213498266Sopenharmony_ci</features>
4313498266Sopenharmony_ci<server>
4413498266Sopenharmony_cihttp
4513498266Sopenharmony_ci</server>
4613498266Sopenharmony_ci<name>
4713498266Sopenharmony_ciHTTP GET gzip compressed content with broken gzip header
4813498266Sopenharmony_ci</name>
4913498266Sopenharmony_ci<command>
5013498266Sopenharmony_cihttp://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
5113498266Sopenharmony_ci</command>
5213498266Sopenharmony_ci</client>
5313498266Sopenharmony_ci
5413498266Sopenharmony_ci#
5513498266Sopenharmony_ci# Verify data after the test has been "shot"
5613498266Sopenharmony_ci<verify>
5713498266Sopenharmony_ci<strippart>
5813498266Sopenharmony_cis/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
5913498266Sopenharmony_ci</strippart>
6013498266Sopenharmony_ci<protocol>
6113498266Sopenharmony_ciGET /%TESTNUMBER HTTP/1.1
6213498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
6313498266Sopenharmony_ciUser-Agent: curl/%VERSION
6413498266Sopenharmony_ciAccept: */*
6513498266Sopenharmony_ciAccept-Encoding: xxx
6613498266Sopenharmony_ci
6713498266Sopenharmony_ci</protocol>
6813498266Sopenharmony_ci<errorcode>
6913498266Sopenharmony_ci61
7013498266Sopenharmony_ci</errorcode>
7113498266Sopenharmony_ci</verify>
7213498266Sopenharmony_ci</testcase>
73