Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test390
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 are some strings the google filter should filter:
19
20 # pcrs command 1:
21
22 </head>
23
24 # pcrs command 2:
25
26 <div style="padding-top:11px;min-width:500px">
27
28 # pcrs command 3:
29
30 <table cellspacing=0 cellpadding=0 width=25% align=right bgcolor=#ffffff border=0
31
32 # pcrs command 3 does not filter these because it only hits one pattern:
33
34 </font></td></tr></tbody></table><table align="right" bgcolor="#ffffff"
35
36 <table cellspacing=0 cellpadding=0 align=right bgcolor=#ffffff border=0
37
38 <table style="clear:both" align=right width=25% cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff"
39
40 # pcrs command 4:
41
42 <br clear=all><table border=0 cellpadding=9><tr><td
43 </data>
44 </reply>
45
46 <proxy-reply>
47 <data>
48 HTTP/1.1 200 OK\r
49 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
50 Connection: close\r
51 Content-Type: text/html\r
52 X-Control: swsclose\r
53 Content-Length: 1023\r
54 \r
55 # Here are some strings the google filter should filter:
56
57 # pcrs command 1:
58
59 <style type="text/css">
60  /* Style sheet inserted by Privoxy's google filter. */
61  #fbc, #fbl, #ra, .rhh {visibility: hidden !important;}
62  #tpa1,#tpa2,#tpa3,#tpa4,#tpa5,#tpa5, #spl, .ch, #ads, #toolbar, #google_ads_frame, #mbEnd {display: none !important;}
63  .main_body, .j, #res, .med, .hd, .g, .s
64  {width: 99%; max-width: 100%; margin-left: 0; margin-right: 0;}
65  </style>
66 </head>
67
68 # pcrs command 2:
69
70 <div id="main_body">
71
72 # pcrs command 3:
73
74 <table cellspacing=0 cellpadding=0 width=25% align=right bgcolor=#ffffff border=0 id="ads"
75
76 # pcrs command 3 does not filter these because it only hits one pattern:
77
78 </font></td></tr></tbody></table><table align="right" bgcolor="#ffffff"
79
80 <table cellspacing=0 cellpadding=0 align=right bgcolor=#ffffff border=0
81
82 <table style="clear:both" align=right width=25% cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff"
83
84 # pcrs command 4:
85
86 <br clear=all><table id="toolbar" border=0 cellpadding=9><tr><td
87 </data>
88 </proxy-reply>
89
90 <client>
91 <server>
92 http
93 </server>
94 <name>
95 +filter{google} - multiple pcrs commands triggered
96 </name>
97 <features>
98 proxy
99 </features>
100 <command>
101 http://%HOSTIP:%HTTPPORT/google/multiple-pcrs-commands/%TESTNUMBER
102 </command>
103 </client>
104
105 <verify>
106 <protocol>
107 GET /google/multiple-pcrs-commands/%TESTNUMBER HTTP/1.1\r
108 Host: %HOSTIP:%HTTPPORT\r
109 User-Agent: curl/%VERSION\r
110 Accept: */*\r
111 Connection: close\r
112 \r
113 </protocol>
114 </verify>
115 </testcase>