Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test201
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 fairly inoffensive info page which does
19 # not get blocked by the crude-parental filter:
20
21 Middlesex, Sussex and Essex are counties in the UK.
22 </data>
23 </reply>
24
25 <proxy-reply>
26 <data>
27 HTTP/1.1 200 OK\r
28 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
29 Connection: close\r
30 Content-Type: text/html\r
31 X-Control: swsclose\r
32 \r
33 # This is a fairly inoffensive info page which does
34 # not get blocked by the crude-parental filter:
35
36 Middlesex, Sussex and Essex are counties in the UK.
37 </data>
38 </proxy-reply>
39
40 <client>
41 <server>
42 http
43 </server>
44 <name>
45 +filter{crude-parental} with page containing Middlesex, Sussex and Essex
46 </name>
47 <features>
48 proxy
49 </features>
50 <command>
51 http://%HOSTIP:%HTTPPORT/crude-parental/harmless-info-page/%TESTNUMBER
52 </command>
53 </client>
54
55 <verify>
56 <protocol>
57 GET /crude-parental/harmless-info-page/%TESTNUMBER HTTP/1.1\r
58 Host: %HOSTIP:%HTTPPORT\r
59 User-Agent: curl/%VERSION\r
60 Accept: */*\r
61 Connection: close\r
62 \r
63 </protocol>
64 </verify>
65 </testcase>