Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test18
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter quicktime-kioskmode
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 quicktime-kioskmode filter should filter:
19
20 s/(<embed\s+[^>]*)kioskmode\s*=\s*(["']?)true\2/$1/ig
21
22 <embed blafasel kioskmode="true">
23
24 <embed blafasel kioskmode='true'>
25
26 <embed blafasel kioskmode='true' tralala>
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: 190\r
38 \r
39 # Here are some strings the quicktime-kioskmode filter should filter:
40
41 s/(<embed\s+[^>]*)kioskmode\s*=\s*(["']?)true\2/$1/ig
42
43 <embed blafasel >
44
45 <embed blafasel >
46
47 <embed blafasel  tralala>
48 </data>
49 </proxy-reply>
50
51 <client>
52 <server>
53 http
54 </server>
55 <name>
56 +filter{quicktime-kioskmode}
57 </name>
58 <features>
59 proxy
60 </features>
61 <command>
62 http://%HOSTIP:%HTTPPORT/quicktime-kioskmode/%TESTNUMBER
63 </command>
64 </client>
65
66 <verify>
67 <protocol>
68 GET /quicktime-kioskmode/%TESTNUMBER HTTP/1.1\r
69 Host: %HOSTIP:%HTTPPORT\r
70 User-Agent: curl/%VERSION\r
71 Accept: */*\r
72 Connection: close\r
73 \r
74 </protocol>
75 </verify>
76 </testcase>