Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test37
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter github
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 github filter should filter:
19
20 <signup-prompt blafasel>
21 Come join our proprietary platform!!!
22 </signup-prompt>
23
24 <div class="hx_cookie-banner>
25 By the way, we are using cookies to track you.
26 </div>
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: 166\r
38 \r
39 # Here are some strings the github filter should filter:
40
41
42
43 <div style="display:none;" class="hx_cookie-banner>
44 By the way, we are using cookies to track you.
45 </div>
46 </data>
47 </proxy-reply>
48
49 <client>
50 <server>
51 http
52 </server>
53 <name>
54 +filter{github}
55 </name>
56 <features>
57 proxy
58 </features>
59 <command>
60 http://%HOSTIP:%HTTPPORT/github/%TESTNUMBER
61 </command>
62 </client>
63
64 <verify>
65 <protocol>
66 GET /github/%TESTNUMBER HTTP/1.1\r
67 Host: %HOSTIP:%HTTPPORT\r
68 User-Agent: curl/%VERSION\r
69 Accept: */*\r
70 Connection: close\r
71 \r
72 </protocol>
73 </verify>
74 </testcase>