wolfSSL: Use LIBWOLFSSL_VERSION_HEX to decide whether or not to use WOLFSSL_X509_V_OK
[privoxy.git] / tests / cts / content-filters / data / test10
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter banners-by-link
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-link filter should modify:
19
20 # pcrs command 1:
21
22 <a href="http://www.example.org/adclick/blafasel"><img src="https://www.example.org/img-link-target" width="123" height="345">
23 <a href="http://www.example.org/advert/blafasel"><img src="https://www.example.org/img-link-target" width="123" height="345">
24 <a href="http://atwola.com/link"><img src="https://www.example.org/img-link-target" width="123" height="345">
25 <a href="http://atwola.com/redir"><img src="https://www.example.org/img-link-target" width="123" height="345">
26 <a href="http://doubleclick.net/jump/"><img src="https://www.example.org/img-link-target" width="123" height="345">
27 <a href="http://www.example.org/blafasel/counter"><img src="https://www.example.org/img-link-target" width="123" height="345">
28 <a href="http://www.example.org/blafasel/tracker"><img src="https://www.example.org/img-link-target" width="123" height="345">
29 <a href="http://www.example.org/blafasel/keep-me&type=tracker"><img src="https://www.example.org/img-link-target" width="123" height="345">
30 <a href="http://adlog.pl"><img src="https://www.example.org/img-link-target" width="123" height="345">
31
32 # pcrs command 2:
33
34 <a href="http://www.example.org/adclick/blafasel"><img src="https://www.example.org/img-link-target">
35 <a href="http://www.example.org/advert/blafasel"><img src="https://www.example.org/img-link-target">
36 <a href="http://atwola.com/link"><img src="https://www.example.org/img-link-target">
37 <a href="http://atwola.com/redir"><img src="https://www.example.org/img-link-target">
38 <a href="http://doubleclick.net/jump/"><img src="https://www.example.org/img-link-target">
39 <a href="http://www.example.org/blafasel/counter"><img src="https://www.example.org/img-link-target">
40 <a href="http://www.example.org/blafasel/tracker"><img src="https://www.example.org/img-link-target">
41 <a href="http://www.example.org/blafasel/keep-me&type=tracker"><img src="https://www.example.org/img-link-target">
42 <a href="http://adlog.pl"><img src="https://www.example.org/img-link-target">
43 </data>
44 </reply>
45
46 <proxy-reply>
47 <data>
48 HTTP/1.1 200 OK\r
49 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
50 Connection: close\r
51 Content-Type: text/html\r
52 X-Control: swsclose\r
53 Content-Length: 3256\r
54 \r
55 # Here is some HTML that the banners-by-link filter should modify:
56
57 # pcrs command 1:
58
59 <img width="123" height="345" src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://www.example.org/adclick/blafasel">
60 <img width="123" height="345" src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://www.example.org/advert/blafasel">
61 <img width="123" height="345" src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://atwola.com/link">
62 <img width="123" height="345" src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://atwola.com/redir">
63 <img width="123" height="345" src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://doubleclick.net/jump/">
64 <img width="123" height="345" src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://www.example.org/blafasel/counter">
65 <img width="123" height="345" src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://www.example.org/blafasel/tracker">
66 <a href="http://www.example.org/blafasel/keep-me&type=tracker"><img src="https://www.example.org/img-link-target" width="123" height="345">
67 <img width="123" height="345" src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://adlog.pl">
68
69 # pcrs command 2:
70
71 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://www.example.org/adclick/blafasel">
72 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://www.example.org/advert/blafasel">
73 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://atwola.com/link">
74 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://atwola.com/redir">
75 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://doubleclick.net/jump/">
76 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://www.example.org/blafasel/counter">
77 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://www.example.org/blafasel/tracker">
78 <a href="http://www.example.org/blafasel/keep-me&type=tracker"><img src="https://www.example.org/img-link-target">
79 <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed https://www.example.org/img-link-target by link to http://adlog.pl">
80 </data>
81 </proxy-reply>
82
83 <client>
84 <server>
85 http
86 </server>
87 <name>
88 +filter{banners-by-link}
89 </name>
90 <features>
91 proxy
92 </features>
93 <command>
94 http://%HOSTIP:%HTTPPORT/banners-by-link/%TESTNUMBER
95 </command>
96 </client>
97
98 <verify>
99 <protocol>
100 GET /banners-by-link/%TESTNUMBER HTTP/1.1\r
101 Host: %HOSTIP:%HTTPPORT\r
102 User-Agent: curl/%VERSION\r
103 Accept: */*\r
104 Connection: close\r
105 \r
106 </protocol>
107 </verify>
108 </testcase>