wolfSSL: Use LIBWOLFSSL_VERSION_HEX to decide whether or not to use WOLFSSL_X509_V_OK
[privoxy.git] / tests / cts / content-filters / data / test17
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter shockwave-flash
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 shockwave-flash filter should filter:
19
20 # pcrs command 1:
21
22 <object blafasel macromedia tralala>bla bla bla</object>
23
24 <object
25 blafasel
26 macromedia
27 tralala
28 >bla bla bla</object>
29
30 <Object
31         blafasel
32                 macromedia
33                         tralala
34                                 >       bla     bla     bla
35 </Object>
36
37 # pcrs command 2:
38
39 <embed blafasel application/x-shockwave-flash bumfidel>xyz</embed>
40
41 <embed blafasel
42 application/x-shockwave-flash
43 bumfidel>xyz</embed>
44
45 <embed blafasel
46        application/x-shockwave-flash
47        bumfidel>
48
49 <embed blafasel src="https://example.org/flash-me.swf">
50
51 XXX: The following strings don't get filter but probably should be:
52
53 <embed
54 blafasel
55         src="https://example.org/flash-me.swf">
56
57 <EMBED
58 blafasel
59         src="https://example.org/flash-me.swf">
60 </data>
61 </reply>
62
63 <proxy-reply>
64 <data>
65 HTTP/1.1 200 OK\r
66 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
67 Connection: close\r
68 Content-Type: text/html\r
69 X-Control: swsclose\r
70 Content-Length: 739\r
71 \r
72 # Here are some strings the shockwave-flash filter should filter:
73
74 # pcrs command 1:
75
76 <!-- Squished Shockwave Object -->
77
78 <object
79 blafasel
80 macromedia
81 tralala
82 >bla bla bla</object>
83
84 <Object
85         blafasel
86                 macromedia
87                         tralala
88                                 >       bla     bla     bla
89 </Object>
90
91 # pcrs command 2:
92
93 <!-- Squished Shockwave Flash Embed -->xyz</embed>
94
95 <!-- Squished Shockwave Flash Embed -->xyz</embed>
96
97 <!-- Squished Shockwave Flash Embed -->
98
99 <!-- Squished Shockwave Flash Embed -->
100
101 XXX: The following strings don't get filter but probably should be:
102
103 <embed
104 blafasel
105         src="https://example.org/flash-me.swf">
106
107 <EMBED
108 blafasel
109         src="https://example.org/flash-me.swf">
110 </data>
111 </proxy-reply>
112
113 <client>
114 <server>
115 http
116 </server>
117 <name>
118 +filter{shockwave-flash}
119 </name>
120 <features>
121 proxy
122 </features>
123 <command>
124 http://%HOSTIP:%HTTPPORT/shockwave-flash/%TESTNUMBER
125 </command>
126 </client>
127
128 <verify>
129 <protocol>
130 GET /shockwave-flash/%TESTNUMBER HTTP/1.1\r
131 Host: %HOSTIP:%HTTPPORT\r
132 User-Agent: curl/%VERSION\r
133 Accept: */*\r
134 Connection: close\r
135 \r
136 </protocol>
137 </verify>
138 </testcase>