Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test25
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter sourceforge
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 sourceforge filter should filter:
19
20 # pcrs command 1:
21
22 <div id="banner-sterling" blafasel
23
24 # pcrs command 2:
25
26 <section id="nels" blafasel
27
28 # pcrs command 3:
29
30 <aside class="m-wide-widget m-wide-projects-widget " blafasel
31
32 # pcrs command 4:
33
34 <div id="newsletter-floating" blafasel
35
36 # pcrs command 5:
37
38 <div class="sterling" id="banner-sterling" blafasel
39 </data>
40 </reply>
41
42 <proxy-reply>
43 <data>
44 HTTP/1.1 200 OK\r
45 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
46 Connection: close\r
47 Content-Type: text/html\r
48 X-Control: swsclose\r
49 Content-Length: 488\r
50 \r
51 # Here are some strings the sourceforge filter should filter:
52
53 # pcrs command 1:
54
55 <div id="banner-sterling" style="display:none;" blafasel
56
57 # pcrs command 2:
58
59 <section id="nels" style="display:none;" blafasel
60
61 # pcrs command 3:
62
63 <aside class="m-wide-widget m-wide-projects-widget " style="display:none;" blafasel
64
65 # pcrs command 4:
66
67 <div id="newsletter-floating" style="display:none;" blafasel
68
69 # pcrs command 5:
70
71 <div class="sterling" id="banner-sterling" style="display:none;" blafasel
72 </data>
73 </proxy-reply>
74
75 <client>
76 <server>
77 http
78 </server>
79 <name>
80 +filter{sourceforge}
81 </name>
82 <features>
83 proxy
84 </features>
85 <command>
86 http://%HOSTIP:%HTTPPORT/sourceforge/%TESTNUMBER
87 </command>
88 </client>
89
90 <verify>
91 <protocol>
92 GET /sourceforge/%TESTNUMBER HTTP/1.1\r
93 Host: %HOSTIP:%HTTPPORT\r
94 User-Agent: curl/%VERSION\r
95 Accept: */*\r
96 Connection: close\r
97 \r
98 </protocol>
99 </verify>
100 </testcase>