Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test35
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter no-ping
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 no-ping filter should filter:
19
20 <a ping="http://www.example.org/ping-target" href="http://www.example.org/link-target">click here</a>
21
22 <a ping='http://www.example.org/ping-target' href="http://www.example.org/link-target">click here</a>
23
24 <area ping="http://www.example.org/ping-target" href="http://www.example.org/link-target">
25
26 <area ping='http://www.example.org/ping-target' href="http://www.example.org/link-target">
27 </data>
28 </reply>
29
30 <proxy-reply>
31 <data>
32 HTTP/1.1 200 OK\r
33 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
34 Connection: close\r
35 Content-Type: text/html\r
36 X-Control: swsclose\r
37 Content-Length: 836\r
38 \r
39 # Here are some strings the no-ping filter should filter:
40
41 <strong style="color:white; background-color:red;" title="Privoxy removed ping target 'http://www.example.org/ping-target'">PING!</strong>
42 <a href="http://www.example.org/link-target">click here</a>
43
44 <strong style="color:white; background-color:red;" title="Privoxy removed ping target 'http://www.example.org/ping-target'">PING!</strong>
45 <a href="http://www.example.org/link-target">click here</a>
46
47 <strong style="color:white; background-color:red;" title="Privoxy removed ping target 'http://www.example.org/ping-target'">PING!</strong>
48 <area href="http://www.example.org/link-target">
49
50 <strong style="color:white; background-color:red;" title="Privoxy removed ping target 'http://www.example.org/ping-target'">PING!</strong>
51 <area href="http://www.example.org/link-target">
52 </data>
53 </proxy-reply>
54
55 <client>
56 <server>
57 http
58 </server>
59 <name>
60 +filter{no-ping}
61 </name>
62 <features>
63 proxy
64 </features>
65 <command>
66 http://%HOSTIP:%HTTPPORT/no-ping/%TESTNUMBER
67 </command>
68 </client>
69
70 <verify>
71 <protocol>
72 GET /no-ping/%TESTNUMBER HTTP/1.1\r
73 Host: %HOSTIP:%HTTPPORT\r
74 User-Agent: curl/%VERSION\r
75 Accept: */*\r
76 Connection: close\r
77 \r
78 </protocol>
79 </verify>
80 </testcase>