Add test scenario header-filters
[privoxy.git] / tests / cts / header-filters / data / test6
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 client-header-filter no-brotli-accepted
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 X-Control: swsclose\r
17 Content-Length: 0\r
18 \r
19 </data>
20 </reply>
21
22 <proxy-reply>
23 <data>
24 HTTP/1.1 200 OK\r
25 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
26 Connection: close\r
27 Content-Type: text/html\r
28 X-Control: swsclose\r
29 Content-Length: 0\r
30 \r
31 </data>
32 </proxy-reply>
33
34 <client>
35 <server>
36 http
37 </server>
38 <name>
39 +client-header-filter{no-brotli-accepted}
40 </name>
41 <features>
42 proxy
43 </features>
44 <command>
45 --head -H "Accept-Encoding: br" -H "Accept-Encoding: gzip, br" -H "Accept-Encoding: br, gzip" http://%HOSTIP:%HTTPPORT/no-brotli-accepted/%TESTNUMBER
46 </command>
47 </client>
48
49 <verify>
50 <protocol>
51 HEAD /no-brotli-accepted/%TESTNUMBER HTTP/1.1\r
52 Host: %HOSTIP:%HTTPPORT\r
53 User-Agent: curl/%VERSION\r
54 Accept: */*\r
55 Accept-Encoding: \r
56 Accept-Encoding: gzip\r
57 Accept-Encoding: gzip\r
58 Connection: close\r
59 \r
60 </protocol>
61 </verify>
62 </testcase>