Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test392
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter google
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 \r
18 # Here is a string the google filter's pcrs command 3 should filter:
19
20 <table cellspacing=0 cellpadding=0 align=right bgcolor=#ffffff border=0
21 </data>
22 </reply>
23
24 <proxy-reply>
25 <data>
26 HTTP/1.1 200 OK\r
27 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
28 Connection: close\r
29 Content-Type: text/html\r
30 X-Control: swsclose\r
31 Content-Length: 151\r
32 \r
33 # Here is a string the google filter's pcrs command 3 should filter:
34
35 <table cellspacing=0 cellpadding=0 align=right bgcolor=#ffffff border=0 id="ads"
36 </data>
37 </proxy-reply>
38
39 <client>
40 <server>
41 http
42 </server>
43 <name>
44 +filter{google} - pcrs command 3 - pattern C
45 </name>
46 <features>
47 proxy
48 </features>
49 <command>
50 http://%HOSTIP:%HTTPPORT/google/pcrs-command-3c/%TESTNUMBER
51 </command>
52 </client>
53
54 <verify>
55 <protocol>
56 GET /google/pcrs-command-3c/%TESTNUMBER HTTP/1.1\r
57 Host: %HOSTIP:%HTTPPORT\r
58 User-Agent: curl/%VERSION\r
59 Accept: */*\r
60 Connection: close\r
61 \r
62 </protocol>
63 </verify>
64 </testcase>