Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test200
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter crude-parental
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 # This is a site which contains the word sex which should trigger the crude-parental filter:
19
20 Here it comes again: SEX!!!!
21 </data>
22 </reply>
23
24 <proxy-reply>
25 <data>
26 HTTP/1.1 200 OK\r
27 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
28 Connection: close\r
29 Content-Type: text/html\r
30 X-Control: swsclose\r
31 Content-Length: 170\r
32 \r
33 <html><head><title>Blocked</title></head><body><h3>Blocked by <a href="http://p.p/">Privoxy's</a> crude-parental filter due to possible adult content.</h3></body></html>
34 </data>
35 </proxy-reply>
36
37 <client>
38 <server>
39 http
40 </server>
41 <name>
42 +filter{crude-parental} with page containing "sex"
43 </name>
44 <features>
45 proxy
46 </features>
47 <command>
48 http://%HOSTIP:%HTTPPORT/crude-parental/pornsite-1/%TESTNUMBER
49 </command>
50 </client>
51
52 <verify>
53 <protocol>
54 GET /crude-parental/pornsite-1/%TESTNUMBER HTTP/1.1\r
55 Host: %HOSTIP:%HTTPPORT\r
56 User-Agent: curl/%VERSION\r
57 Accept: */*\r
58 Connection: close\r
59 \r
60 </protocol>
61 </verify>
62 </testcase>