Add test scenario gzip compression
[privoxy.git] / tests / cts / gzip-compression / data / test23
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 deflate compression
7 skip
8 </keywords>
9 </info>
10
11 <reply>
12 <data>
13 HTTP/1.1 200 OK\r
14 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
15 Connection: close\r
16 Content-Type: text/html\r
17 Content-Encoding: deflate\r
18 X-Control: swsclose\r
19 \r
20 %hex[%0b%ce%cf%4d%55%48%49%4d%cb%49%2c%49%55%48%cd%4b%ce%4f%49%4d%]hex%
21 Bogus data blafasel
22 </data>
23 </reply>
24
25 # The actual reply does not contain a line break after the trailing NUL byte
26 # but we can't currently express this as the </data> tag has to be on its
27 # own line.
28 <proxy-reply>
29 <data>
30 HTTP/1.1 200 OK\r
31 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
32 Connection: close\r
33 Content-Type: text/html\r
34 Content-Encoding: deflate\r
35 X-Control: swsclose\r
36 \r
37 %hex[%0b%ce%cf%4d%55%48%49%4d%cb%49%2c%49%55%48%cd%4b%ce%4f%49%4d%]hex%
38 Bogus data blafasel
39 %hex[%00]hex%
40 </data>
41 </proxy-reply>
42
43 <client>
44 <server>
45 http
46 </server>
47 <name>
48 deflate-encoded content. Corrupted data.
49 </name>
50 <features>
51 proxy
52 </features>
53 <command>
54 -H "Accept-Encoding: deflate" http://%HOSTIP:%HTTPPORT/deflate-compressed-data/%TESTNUMBER
55 </command>
56 </client>
57
58 <verify>
59 <protocol>
60 GET /deflate-compressed-data/%TESTNUMBER HTTP/1.1\r
61 Host: %HOSTIP:%HTTPPORT\r
62 User-Agent: curl/%VERSION\r
63 Accept: */*\r
64 Accept-Encoding: deflate\r
65 \r
66 </protocol>
67 <errorcode>
68 0
69 </errorcode>
70 </verify>
71 </testcase>