Add test scenario gzip compression
[privoxy.git] / tests / cts / gzip-compression / data / test22
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 deflate compression
7 </keywords>
8 </info>
9
10 <reply>
11 <data>
12 HTTP/1.1 200 OK\r
13 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
14 Connection: close\r
15 Content-Type: text/html\r
16 Content-Encoding: deflate\r
17 X-Control: swsclose\r
18 \r
19 %hex[%0b%ce%cf%4d%55%48%49%4d%cb%49%2c%49%55%48%cd%4b%ce%4f%49%4d%51%48%49%2c%49%d4%e3%f2%4b%2d%57%c8%c9%cc%4b%55%c8%48%2d%4a%d5%e3%02%00]hex%
20 </data>
21 </reply>
22
23 <proxy-reply>
24 <data>
25 HTTP/1.1 200 OK\r
26 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
27 Connection: close\r
28 Content-Type: text/html\r
29 X-Control: swsclose\r
30 Content-Length: 42\r
31 \r
32 Some deflate encoded data.
33 New line here.
34 </data>
35 </proxy-reply>
36
37 <client>
38 <server>
39 http
40 </server>
41 <name>
42 deflate-encoded content. Valid.
43 </name>
44 <features>
45 proxy
46 </features>
47 <command>
48 -H "Accept-Encoding: deflate" http://%HOSTIP:%HTTPPORT/deflate-compressed-data/%TESTNUMBER
49 </command>
50 </client>
51
52 <verify>
53 <protocol>
54 GET /deflate-compressed-data/%TESTNUMBER HTTP/1.1\r
55 Host: %HOSTIP:%HTTPPORT\r
56 User-Agent: curl/%VERSION\r
57 Accept: */*\r
58 Accept-Encoding: deflate\r
59 \r
60 </protocol>
61 <errorcode>
62 0
63 </errorcode>
64 </verify>
65 </testcase>