Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test11
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter webbugs
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 some HTML that the webbugs filter should squash:
19
20 <img width="0" height="0" src="http://www.example.org/tracker.cgi">
21 <img width='0' height='0' src="http://www.example.org/tracker.cgi">
22 <img height="0" width="0" src="http://www.example.org/tracker.cgi">
23 <img height='0' width='0'  src="http://www.example.org/tracker.cgi">
24
25 <img width="0" height="1" src="http://www.example.org/tracker.cgi">
26 <img width='0' height='1' src="http://www.example.org/tracker.cgi">
27 <img height="0" width="1" src="http://www.example.org/tracker.cgi">
28 <img height='0' width='1'  src="http://www.example.org/tracker.cgi">
29
30 <img width="1" height="0" src="http://www.example.org/tracker.cgi">
31 <img width='1' height='0' src="http://www.example.org/tracker.cgi">
32 <img height="1" width="0" src="http://www.example.org/tracker.cgi">
33 <img height='1' width='0'  src="http://www.example.org/tracker.cgi">
34
35 <img width="1" height="1" src="http://www.example.org/tracker.cgi">
36 <img width='1' height='1' src="http://www.example.org/tracker.cgi">
37 <img height="1" width="1" src="http://www.example.org/tracker.cgi">
38 <img height='1' width='1'  src="http://www.example.org/tracker.cgi">
39
40 </data>
41 </reply>
42
43 <proxy-reply>
44 <data>
45 HTTP/1.1 200 OK\r
46 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
47 Connection: close\r
48 Content-Type: text/html\r
49 X-Control: swsclose\r
50 Content-Length: 80\r
51 \r
52 # Here is some HTML that the webbugs filter should squash:
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 </data>
75 </proxy-reply>
76
77 <client>
78 <server>
79 http
80 </server>
81 <name>
82 +filter{webbugs}
83 </name>
84 <features>
85 proxy
86 </features>
87 <command>
88 http://%HOSTIP:%HTTPPORT/webbugs/%TESTNUMBER
89 </command>
90 </client>
91
92 <verify>
93 <protocol>
94 GET /webbugs/%TESTNUMBER HTTP/1.1\r
95 Host: %HOSTIP:%HTTPPORT\r
96 User-Agent: curl/%VERSION\r
97 Accept: */*\r
98 Connection: close\r
99 \r
100 </protocol>
101 </verify>
102 </testcase>