wolfSSL: Use LIBWOLFSSL_VERSION_HEX to decide whether or not to use WOLFSSL_X509_V_OK
[privoxy.git] / tests / cts / content-filters / data / test9
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter banners-by-size
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 is some HTML that the banners-by-size filter should modify:
19
20 # pcrs command 1 (88*31):
21
22 <img src="http://www.privoxy.org/images/privoxy.png" width="88" height="31">
23 <img src="https://www.privoxy.org/images/privoxy.png" width="88" height="31">
24 <img src='http://www.privoxy.org/images/privoxy.png' width='88' height='31'>
25 <img src="http://www.privoxy.org/images/privoxy.png" width="88" height="31">
26
27 # pcrs command 2 (120*60, 120*90, 120*240, 120*600):
28
29 <img src="http://www.privoxy.org/images/privoxy.png" width="120" height="60">
30 <img src="https://www.privoxy.org/images/privoxy.png" width="120" height="60">
31 <img src='http://www.privoxy.org/images/privoxy.png' width='120' height='60'>
32 <img src="http://www.privoxy.org/images/privoxy.png" width="120" height="60">
33
34 <img src="http://www.privoxy.org/images/privoxy.png" width="120" height="90">
35 <img src="https://www.privoxy.org/images/privoxy.png" width="120" height="90">
36 <img src='http://www.privoxy.org/images/privoxy.png' width='120' height='90'>
37 <img src="http://www.privoxy.org/images/privoxy.png" width="120" height="90">
38
39 <img src="http://www.privoxy.org/images/privoxy.png" width="120" height="240">
40 <img src="https://www.privoxy.org/images/privoxy.png" width="120" height="240">
41 <img src='http://www.privoxy.org/images/privoxy.png' width='120' height='240'>
42 <img src="http://www.privoxy.org/images/privoxy.png" width="120" height="240">
43
44 <img src="http://www.privoxy.org/images/privoxy.png" width="120" height="600">
45 <img src="https://www.privoxy.org/images/privoxy.png" width="120" height="600">
46 <img src='http://www.privoxy.org/images/privoxy.png' width='120' height='600'>
47 <img src="http://www.privoxy.org/images/privoxy.png" width="120" height="600">
48
49 # pcrs command 3 (125*125):
50
51 <img src="http://www.privoxy.org/images/privoxy.png" width="125" height="125">
52 <img src="https://www.privoxy.org/images/privoxy.png" width="125" height="125">
53 <img src='http://www.privoxy.org/images/privoxy.png' width='125' height='125'>
54 <img src="http://www.privoxy.org/images/privoxy.png" width="125" height="125">
55
56 # pcrs command 4 (160*600):
57
58 <img src="http://www.privoxy.org/images/privoxy.png" width="160" height="600">
59 <img src="https://www.privoxy.org/images/privoxy.png" width="160" height="600">
60 <img src='http://www.privoxy.org/images/privoxy.png' width='160' height='600'>
61 <img src="http://www.privoxy.org/images/privoxy.png" width="160" height="600">
62
63 # pcrs command 5 (180*150):
64
65 <img src="http://www.privoxy.org/images/privoxy.png" width="180" height="150">
66 <img src="https://www.privoxy.org/images/privoxy.png" width="180" height="150">
67 <img src='http://www.privoxy.org/images/privoxy.png' width='180' height='150'>
68 <img src="http://www.privoxy.org/images/privoxy.png" width="180" height="150">
69
70 # pcrs command 6 (234*60, 468*60):
71
72 <img src="http://www.privoxy.org/images/privoxy.png" width="234" height="60">
73 <img src="https://www.privoxy.org/images/privoxy.png" width="234" height="60">
74 <img src='http://www.privoxy.org/images/privoxy.png' width='234' height='60'>
75 <img src="http://www.privoxy.org/images/privoxy.png" width="234" height="60">
76
77 <img src="http://www.privoxy.org/images/privoxy.png" width="468" height="60">
78 <img src="https://www.privoxy.org/images/privoxy.png" width="468" height="60">
79 <img src='http://www.privoxy.org/images/privoxy.png' width='468' height='60'>
80 <img src="http://www.privoxy.org/images/privoxy.png" width="468" height="60">
81
82 # pcrs command 7 (240*400):
83
84 <img src="http://www.privoxy.org/images/privoxy.png" width="240" height="400">
85 <img src="https://www.privoxy.org/images/privoxy.png" width="240" height="400">
86 <img src='http://www.privoxy.org/images/privoxy.png' width='240' height='400'>
87 <img src="http://www.privoxy.org/images/privoxy.png" width="240" height="400">
88
89 # pcrs command 8 (250*250, 300*250):
90
91 <img src="http://www.privoxy.org/images/privoxy.png" width="250" height="250">
92 <img src="https://www.privoxy.org/images/privoxy.png" width="250" height="250">
93 <img src='http://www.privoxy.org/images/privoxy.png' width='250' height='250'>
94 <img src="http://www.privoxy.org/images/privoxy.png" width="250" height="250">
95
96 <img src="http://www.privoxy.org/images/privoxy.png" width="300" height="250">
97 <img src="https://www.privoxy.org/images/privoxy.png" width="300" height="250">
98 <img src='http://www.privoxy.org/images/privoxy.png' width='300' height='250'>
99 <img src="http://www.privoxy.org/images/privoxy.png" width="300" height="250">
100
101 # pcrs command 8 (336*280):
102
103 <img src="http://www.privoxy.org/images/privoxy.png" width="336" height="280">
104 <img src="https://www.privoxy.org/images/privoxy.png" width="336" height="280">
105 <img src='http://www.privoxy.org/images/privoxy.png' width='336' height='280'>
106 <img src="http://www.privoxy.org/images/privoxy.png" width="336" height="280">
107 </data>
108 </reply>
109
110 <proxy-reply>
111 <data>
112 HTTP/1.1 200 OK\r
113 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
114 Connection: close\r
115 Content-Type: text/html\r
116 X-Control: swsclose\r
117 Content-Length: 9499\r
118 \r
119 # Here is some HTML that the banners-by-size filter should modify:
120
121 # pcrs command 1 (88*31):
122
123   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="88" height="31">
124   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="88" height="31">
125   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='88' height='31'>
126   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="88" height="31">
127
128 # pcrs command 2 (120*60, 120*90, 120*240, 120*600):
129
130   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="120" height="60">
131   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="120" height="60">
132   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='120' height='60'>
133   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="120" height="60">
134
135   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="120" height="90">
136   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="120" height="90">
137   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='120' height='90'>
138   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="120" height="90">
139
140   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="120" height="240">
141   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="120" height="240">
142   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='120' height='240'>
143   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="120" height="240">
144
145   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="120" height="600">
146   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="120" height="600">
147   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='120' height='600'>
148   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="120" height="600">
149
150 # pcrs command 3 (125*125):
151
152   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="125" height="125">
153   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="125" height="125">
154   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='125' height='125'>
155   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="125" height="125">
156
157 # pcrs command 4 (160*600):
158
159   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="160" height="600">
160   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="160" height="600">
161   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='160' height='600'>
162   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="160" height="600">
163
164 # pcrs command 5 (180*150):
165
166   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="180" height="150">
167   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="180" height="150">
168   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='180' height='150'>
169   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="180" height="150">
170
171 # pcrs command 6 (234*60, 468*60):
172
173   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="234" height="60">
174   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="234" height="60">
175   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='234' height='60'>
176   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="234" height="60">
177
178   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="468" height="60">
179   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="468" height="60">
180   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='468' height='60'>
181   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="468" height="60">
182
183 # pcrs command 7 (240*400):
184
185   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="240" height="400">
186   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="240" height="400">
187   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='240' height='400'>
188   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="240" height="400">
189
190 # pcrs command 8 (250*250, 300*250):
191
192   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="250" height="250">
193   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="250" height="250">
194   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='250' height='250'>
195   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="250" height="250">
196
197   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="300" height="250">
198   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="300" height="250">
199   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='300' height='250'>
200   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="300" height="250">
201
202 # pcrs command 8 (336*280):
203
204   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="336" height="280">
205   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-https://www.privoxy.org/images/privoxy.png-by-size" width="336" height="280">
206   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width='336' height='280'>
207   <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-http://www.privoxy.org/images/privoxy.png-by-size" width="336" height="280">
208 </data>
209 </proxy-reply>
210
211 <client>
212 <server>
213 http
214 </server>
215 <name>
216 +filter{banners-by-size}
217 </name>
218 <features>
219 proxy
220 </features>
221 <command>
222 http://%HOSTIP:%HTTPPORT/banners-by-size/%TESTNUMBER
223 </command>
224 </client>
225
226 <verify>
227 <protocol>
228 GET /banners-by-size/%TESTNUMBER HTTP/1.1\r
229 Host: %HOSTIP:%HTTPPORT\r
230 User-Agent: curl/%VERSION\r
231 Accept: */*\r
232 Connection: close\r
233 \r
234 </protocol>
235 </verify>
236 </testcase>