1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 compressed 7 Transfer-Encoding 8 </keywords> 9 </info> 10 # 11 # Server-side 12 <reply> 13 <data base64="yes"> 14 SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDA0IDIxOjU2OjUzIEdNVA0KU2Vy 15 dmVyOiBBcGFjaGUvMS4zLjMxIChEZWJpYW4gR05VL0xpbnV4KSBtb2RfZ3ppcC8xLjMuMjYuMWEg 16 UEhQLzQuMy45LTEgbW9kX3NzbC8yLjguMjAgT3BlblNTTC8wLjkuN2QgbW9kX3BlcmwvMS4yOQ0K 17 VmFyeTogQWNjZXB0LUVuY29kaW5nDQpDb250ZW50LVR5cGU6IHRleHQvaHRtbDsgY2hhcnNldD1J 18 U08tODg1OS0xDQpUcmFuc2Zlci1FbmNvZGluZzogZ3ppcA0KQ29udGVudC1MZW5ndGg6IDQ0DQoN 19 Ch+LCAh5nqtBAANsYWxhbGEAy8nMS1Uw5FLIAdFGXAoQhjEXAAoCcWAYAAAA 20 </data> 21 22 <datacheck> 23 HTTP/1.1 200 OK 24 Date: Mon, 29 Nov 2004 21:56:53 GMT 25 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 26 Vary: Accept-Encoding 27 Content-Type: text/html; charset=ISO-8859-1 28 Transfer-Encoding: gzip 29 Content-Length: 44 30 31 line 1 32 line 2 33 line 3 34 </datacheck> 35 36 </reply> 37 38 # 39 # Client-side 40 <client> 41 <features> 42 libz 43 </features> 44 <server> 45 http 46 </server> 47 <name> 48 HTTP GET transfer-encoding with custom Connection: 49 </name> 50 <command> 51 http://%HOSTIP:%HTTPPORT/1125 --tr-encoding -H "Connection: close" 52 </command> 53 </client> 54 55 # 56 # Verify data after the test has been "shot" 57 <verify> 58 <strip> 59 ^User-Agent:.* 60 </strip> 61 <protocol> 62 GET /1125 HTTP/1.1 63 Host: %HOSTIP:%HTTPPORT 64 Accept: */* 65 Connection: close, TE 66 TE: gzip 67 68 </protocol> 69 </verify> 70 </testcase> 71