test220 (1398B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 compressed 7 </keywords> 8 </info> 9 # 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 200 OK 14 Date: Mon, 29 Nov 2004 21:56:53 GMT 15 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 16 Vary: Accept-Encoding 17 Content-Type: text/html; charset=ISO-8859-1 18 Content-Encoding: GZIP 19 Content-Length: 44 20 21 %hex[%1f%8b%08%08%79%9e%ab%41%00%03%6c%61%6c%61%6c%61%00%cb%c9%cc%4b%55%30%e4%52%c8%01%d1%46%5c%0a%10%86%31%17%00]hex% 22 %hex[%02%71%60%18%00%00%00]hex% 23 </data> 24 25 <datacheck> 26 HTTP/1.1 200 OK 27 Date: Mon, 29 Nov 2004 21:56:53 GMT 28 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 29 Vary: Accept-Encoding 30 Content-Type: text/html; charset=ISO-8859-1 31 Content-Encoding: GZIP 32 Content-Length: 44 33 34 line 1 35 line 2 36 line 3 37 </datacheck> 38 39 </reply> 40 41 # 42 # Client-side 43 <client> 44 <features> 45 libz 46 </features> 47 <server> 48 http 49 </server> 50 <name> 51 HTTP GET gzip compressed content 52 </name> 53 <command> 54 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed 55 </command> 56 </client> 57 58 # 59 # Verify data after the test has been "shot" 60 <verify> 61 <strippart> 62 s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/ 63 </strippart> 64 <protocol> 65 GET /%TESTNUMBER HTTP/1.1 66 Host: %HOSTIP:%HTTPPORT 67 User-Agent: curl/%VERSION 68 Accept: */* 69 Accept-Encoding: xxx 70 71 </protocol> 72 </verify> 73 </testcase>