Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test19
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter fun
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 fun filter should filter:
19
20 # pcrs command 1:
21
22 Microsoft
23
24 # pcrs command 1 should not break URLs:
25
26 https://www.microsoft.com/
27
28 # pcrs command 2:
29
30 Our great product is
31     industry leading
32              world-leading
33                         cutting edge
34                                 customer-focused
35                                         market driven
36                                                award winning
37                                                      high performance
38                                                           solutions-based
39                                                                 unmatched
40                                                                         unparalleled
41                                                                                 and unrivalled.
42
43 # pcrs command 3:
44
45 Medieninformatik
46         medien
47 </data>
48 </reply>
49
50 <proxy-reply>
51 <data>
52 HTTP/1.1 200 OK\r
53 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
54 Connection: close\r
55 Content-Type: text/html\r
56 X-Control: swsclose\r
57 Content-Length: 1456\r
58 \r
59 # Here are some strings the fun filter should filter:
60
61 # pcrs command 1:
62
63 MicroSuck
64
65 # pcrs command 1 should not break URLs:
66
67 https://www.microsoft.com/
68
69 # pcrs command 2:
70
71 Our great product is
72     industry leading<sup><font color="red"><b>Bingo!</b></font></sup> 
73              world-leading<sup><font color="red"><b>Bingo!</b></font></sup> 
74                         cutting edge<sup><font color="red"><b>Bingo!</b></font></sup> 
75                                 customer-focused<sup><font color="red"><b>Bingo!</b></font></sup> 
76                                         market driven<sup><font color="red"><b>Bingo!</b></font></sup> 
77                                                award winning<sup><font color="red"><b>Bingo!</b></font></sup> 
78                                                      high performance<sup><font color="red"><b>Bingo!</b></font></sup> 
79                                                           solutions-based<sup><font color="red"><b>Bingo!</b></font></sup> 
80                                                                 unmatched<sup><font color="red"><b>Bingo!</b></font></sup> 
81                                                                         unparalleled<sup><font color="red"><b>Bingo!</b></font></sup> 
82                                                                                 and unrivalled<sup><font color="red"><b>Bingo!</b></font></sup> .
83
84 # pcrs command 3:
85
86 M&auml;dcheninformatik
87         m&auml;dchen
88 </data>
89 </proxy-reply>
90
91 <client>
92 <server>
93 http
94 </server>
95 <name>
96 +filter{fun}
97 </name>
98 <features>
99 proxy
100 </features>
101 <command>
102 http://%HOSTIP:%HTTPPORT/fun/%TESTNUMBER
103 </command>
104 </client>
105
106 <verify>
107 <protocol>
108 GET /fun/%TESTNUMBER HTTP/1.1\r
109 Host: %HOSTIP:%HTTPPORT\r
110 User-Agent: curl/%VERSION\r
111 Accept: */*\r
112 Connection: close\r
113 \r
114 </protocol>
115 </verify>
116 </testcase>