Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test15
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter iframes
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 iframes the iframes filter should filter:
19
20 <iframe src="https://www.example.org/ads" title="Some ads for you"></iframe>
21
22 <iframe
23    src="https://www.example.org/ads"
24         title="Some ads for you"></iframe>
25
26 <iframe src="https://www.example.org/ads">
27 </iframe>
28
29 <iframe src="https://www.example.org/ads">
30 </iframe>
31 </data>
32 </reply>
33
34 <proxy-reply>
35 <data>
36 HTTP/1.1 200 OK\r
37 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
38 Connection: close\r
39 Content-Type: text/html\r
40 X-Control: swsclose\r
41 Content-Length: 266\r
42 \r
43 # Here are some iframes the iframes filter should filter:
44
45 <!-- iframe removed by Privoxy's iframe filter -->
46
47 <!-- iframe removed by Privoxy's iframe filter -->
48
49 <!-- iframe removed by Privoxy's iframe filter -->
50
51 <!-- iframe removed by Privoxy's iframe filter -->
52 </data>
53 </proxy-reply>
54
55 <client>
56 <server>
57 http
58 </server>
59 <name>
60 +filter{iframes}
61 </name>
62 <features>
63 proxy
64 </features>
65 <command>
66 http://%HOSTIP:%HTTPPORT/iframes/%TESTNUMBER
67 </command>
68 </client>
69
70 <verify>
71 <protocol>
72 GET /iframes/%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>