Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test21
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 Here are some Warez. Download them now!
19 </data>
20 </reply>
21
22 <proxy-reply>
23 <data>
24 HTTP/1.1 200 OK\r
25 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
26 Connection: close\r
27 Content-Type: text/html\r
28 X-Control: swsclose\r
29 Content-Length: 120\r
30 \r
31 <html><head><title>No Warez</title></head><body><h3>You're not searching for illegal stuff, are you?</h3></body></html>
32 </data>
33 </proxy-reply>
34
35 <client>
36 <server>
37 http
38 </server>
39 <name>
40 +filter{crude-parental} with warez page
41 </name>
42 <features>
43 proxy
44 </features>
45 <command>
46 http://%HOSTIP:%HTTPPORT/crude-parental/warez-page-1/%TESTNUMBER 
47 </command>
48 </client>
49
50 <verify>
51 <protocol>
52 GET /crude-parental/warez-page-1/%TESTNUMBER HTTP/1.1\r
53 Host: %HOSTIP:%HTTPPORT\r
54 User-Agent: curl/%VERSION\r
55 Accept: */*\r
56 Connection: close\r
57 \r
58 </protocol>
59 </verify>
60 </testcase>