developer-manual: Remove a couple of package-dependend upload instructions
[privoxy.git] / regression-tests.action
1 #############################################################################
2 #
3 # This is a configuration file for Privoxy-Regression-Test
4 # (included in the source tarball's tools directory and available at
5 # https://www.privoxy.org/gitweb/?p=privoxy.git;a=blob;f=tools/privoxy-regression-test.pl;hb=HEAD).
6 #
7 # After referencing this file in your Privoxy configuration both Privoxy and
8 # Privoxy-Regression-Test should be good to go.
9 #
10 #############################################################################
11 #
12 # Copyright (c) 2007-2020 Fabian Keil <fk@fabiankeil.de>
13 #
14 # Permission to use, copy, modify, and distribute this software for any
15 # purpose with or without fee is hereby granted, provided that the above
16 # copyright notice and this permission notice appear in all copies.
17 #
18 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
19 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
20 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
21 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
22 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
23 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
24 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 #
26 #############################################################################
27
28 {{settings}}
29 for-privoxy-version=3.0.29
30
31 # Some dependencies Privoxy-Regression-Test should know about:
32 #
33 # Level  9 needs = config line user-manual\s+(\.?\.?/|[A-Za-z]:)
34 # Level 12 needs = feature status FEATURE_CGI_EDIT_ACTIONS Yes
35 # Level 12 needs = config line enable-edit-actions\s+1
36 # Level 13 needs = feature status FEATURE_CONNECTION_KEEP_ALIVE Yes
37 # Level 13 needs = config line keep-alive-timeout\s+(2[1-9]+|[3-9]\d+|1\d{2,})
38 # Level 14 needs = feature status FEATURE_CONNECTION_KEEP_ALIVE No
39 # Level 15 needs = config line connection-sharing\s+0
40 # Level 16 needs = feature status FEATURE_CONNECTION_KEEP_ALIVE Yes
41 # Level 16 needs = config line connection-sharing\s+1
42 # Level 17 needs = feature status FEATURE_64_BIT_TIME_T Yes
43 # Level 18 needs = feature status FEATURE_GRACEFUL_TERMINATION No
44 # Level 19 needs = feature status FEATURE_GRACEFUL_TERMINATION Yes
45 # Level 20 needs = config line enable-remote-toggle\s+1
46 # Level 21 needs = config line enable-remote-toggle\s+0
47 # Level 22 needs = config line enable-proxy-authentication-forwarding\s+0
48 # Level 23 needs = config line enable-proxy-authentication-forwarding\s+1
49 # Level 24 needs = feature status FEATURE_CLIENT_TAGS Yes
50 # Level 25 needs = feature status FEATURE_HTTPS_INSPECTION No
51 # Level 26 needs = feature status FEATURE_PCRE_HOST_PATTERNS Yes
52
53 #######################################################
54 # Enable taggers to activate the tests on demand
55 # and suppress hiding the User-Agent for
56 # Privoxy-Regression-Test to save log space.
57 #######################################################
58 {\
59  +client-header-tagger{user-agent} \
60  +client-header-tagger{privoxy-control} \
61  +client-header-filter{privoxy-control} \
62 }
63 config.privoxy.org/
64 p.p/
65 127.0.0.1/
66
67 {-hide-user-agent}
68 TAG:^User-Agent: Privoxy-Regression-Test
69
70 #######################################################
71 # Test accept-language{}.
72 #######################################################
73
74 {+hide-accept-language{en-gb}}
75 # Set Header    = Accept-Language: de-de
76 # Expect Header = Accept-Language: en-gb
77 TAG:^hide-accept-language\{en-gb\}$
78
79 {+hide-accept-language{block}}
80 # Set Header    = Accept-Language: de-de
81 # Expect Header = REMOVAL
82 TAG:^hide-accept-language\{block\}$
83
84 #######################################################
85 # Sections for hide-referrer{} to test:
86 #
87 # 1) conditional-block
88 # 2) conditional-forge
89 # 3) forge
90 # 4) block
91 # 5) a parameter that looks like a valid fake referrer
92 # 6) a parameter that looks like an invalid fake referrer
93 #######################################################
94
95 {+hide-referrer{conditional-block}}
96 # Set Header    = Referer: http://www.example.org/foo
97 # Expect Header = REMOVAL
98 #
99 # Set Header    = Referer: http://p.p/foo
100 # Expect Header = NO CHANGE
101 #
102 # Set Header    = Referer: p.p/
103 # Expect Header = REMOVAL
104 #
105 # Set Header    = Referer: p
106 # Expect Header = REMOVAL
107 #
108 # Set Header    = Referer: http://
109 # Expect Header = REMOVAL
110 #
111 # Set Header    = Referer: https://p.p/
112 # Expect Header = REMOVAL
113 TAG:^hide-referrer\{conditional-block\}$
114
115 {+hide-referrer{conditional-forge}}
116 # Set Header    = Referer: http://www.example.org/foo
117 # Expect Header = Referer: http://p.p/
118 #
119 # Set Header    = Referer: http://p.p/foo
120 # Expect Header = NO CHANGE
121 #
122 # Set Header    = Referer: p.p/
123 # Expect Header = Referer: http://p.p/
124 #
125 # Set Header    = Referer: p
126 # Expect Header = Referer: http://p.p/
127 #
128 # Set Header    = Referer: http://
129 # Expect Header = Referer: http://p.p/
130 #
131 # Set Header    = Referer: https://p.p/
132 # Expect Header = Referer: http://p.p/
133 TAG:^hide-referrer\{conditional-forge\}$
134
135 {+hide-referrer{forge}}
136 # Set Header    = Referer: http://www.example.org/foo
137 # Expect Header = Referer: http://p.p/
138 TAG:^hide-referrer\{forge\}$
139
140 {+hide-referrer{block}}
141 # Set Header    = Referer: http://www.example.org/foo
142 # Expect Header = REMOVAL
143 TAG:^hide-referrer\{block\}$
144
145 {+hide-referrer{invalid}}
146 # Set Header    = Referer: http://www.example.org/foo
147 # Expect Header = Referer: invalid
148 TAG:^hide-referrer\{invalid\}$
149
150 {+hide-referrer{http://www.privoxy.org/}}
151 # Set Header    = Referer: http://www.example.org/asdf
152 # Expect Header = Referer: http://www.privoxy.org/
153 TAG:^hide-referrer\{http://www.privoxy.org/\}$
154
155 #{+hide-referrer{}}
156 #TAG:^hide-referrer\{\}$
157
158 #######################################################
159 # Test hide-user-agent{}.
160 #######################################################
161
162 {+hide-user-agent{Mozilla/5.0 (X11; U; FreeBSD alpha; en-GB; rv:1.8.1.6) Gecko/20070913 Firefox/2.0.0.6}}
163 # Set Header    = User-Agent: Mozilla/5.0 (X11; U; NetBSD i386; de-CH; rv:1.8.1.6) Gecko/20070806 Firefox/2.0.0.6
164 # Expect Header = User-Agent: Mozilla/5.0 (X11; U; FreeBSD alpha; en-GB; rv:1.8.1.6) Gecko/20070913 Firefox/2.0.0.6
165 TAG:^hide-user-agent\{Mozilla/5\.0 \(X11; U; FreeBSD alpha; en-GB; rv:1\.8\.1\.6\) Gecko/20070913 Firefox/2\.0\.0\.6\}$
166
167 {+hide-user-agent{block}}
168 # XXX: Check the code that is tested here.
169 # Set Header = ua-blah: blah
170 # Expect Header = REMOVAL
171 TAG:^hide-user-agent{block}$
172
173 {-hide-user-agent{}}
174 # Set Header = ua-blah: blah
175 # Expect Header = NO CHANGE
176 TAG:^-hide-user-agent{block}$
177
178
179 #######################################################
180 # Test add-header{}.
181 #######################################################
182
183 {+add-header{X-Custom-Header: yes, please}}
184 # Set Header    = X-Whatever: foo
185 # Expect Header = X-Custom-Header: yes, please
186 TAG:^add-header\{X-Custom-Header: yes, please\}$
187
188 #######################################################
189 # Test client-header-filter{hide-tor-exit-notation}.
190 #######################################################
191
192 {+client-header-filter{hide-tor-exit-notation} -hide-referer}
193 # Set Header    = Referer: http://p.p.zwiebelsuppe.exit/
194 # Expect Header = Referer: http://p.p/
195 #
196 # Set Header    = Referer: http://p.p.zwiebelsuppe.exit/foo/bar/baaz/
197 # Expect Header = Referer: http://p.p/foo/bar/baaz/
198 #
199 # Set Header    = Referer: http://p.p/
200 # Expect Header = NO CHANGE
201 #
202 # Set Header    = Referer: http://config.privoxy.org.zwiebelsuppe.exit/foo/bar/baaz.html
203 # Expect Header = Referer: http://config.privoxy.org/foo/bar/baaz.html
204 #
205 # Set Header    = Host: p.p.zwiebelsuppe.exit
206 # Expect Header = Host: p.p
207 #
208 # Set Header    = Host: p.p
209 # Expect Header = NO CHANGE
210 #
211 # Set Header    = Referer: http://config.privoxy.org.ad356ef8e87a89e6c898b74500d58607ac691178.exit/foo/baaz.html
212 # Expect Header = Referer: http://config.privoxy.org/foo/baaz.html
213 TAG:^client-header-filter\{hide-tor-exit-notation\}$
214
215 #######################################################
216 # Test client-header-filter{no-brotli-accepted}.
217 #######################################################
218
219 {+client-header-filter{no-brotli-accepted}}
220 # Set Header    = Accept-Encoding: gzip, deflate, br
221 # Expect Header = Accept-Encoding: gzip, deflate
222 #
223 # Set Header    = Accept-Encoding: gzip, br, deflate
224 # Expect Header = Accept-Encoding: gzip, deflate
225 #
226 # Set Header    = Accept-Encoding: br, gzip, deflate
227 # Expect Header = Accept-Encoding: gzip, deflate
228 #
229 # Set Header    = Accept-Encoding: br
230 # Expect Header = Accept-Encoding:
231 #
232 # Set Header    = Accept-Encoding: gzip, deflate
233 # Expect Header = NO CHANGE
234 #
235 TAG:^client-header-filter\{no-brotli-accepted\}$
236
237 #######################################################
238 # Test crunch-client-header{}.
239 #######################################################
240
241 {+crunch-client-header{text/html}}
242 # Set Header    = Content-Type: text/html
243 # Expect Header = REMOVAL
244 #
245 # Set Header    = Content-Type: text/html; charset=4711
246 # Expect Header = REMOVAL
247 #
248 # Set Header    = Content-Type: text/plain
249 # Expect Header = NO CHANGE
250 TAG:^crunch-client-header\{text/plain\}$
251
252 #######################################################
253 # Test crunch-if-none-match.
254 #######################################################
255
256 {+crunch-if-none-match -hide-if-modified-since}
257 # Set Header    = If-None-Match: 8987afd239d2093kd2309kd
258 # Expect Header = REMOVAL
259 #
260 # Set Header    = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
261 # Expect Header = REMOVAL
262 #
263 # Set Header    = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
264 # Expect Header = NO CHANGE
265 TAG:^crunch-if-none-match$
266
267 #######################################################
268 # Test hide-if-modified-since
269 #######################################################
270
271 {+hide-if-modified-since{block} -crunch-if-none-match}
272 # Set Header    = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
273 # Expect Header = REMOVAL
274 #
275 # Set Header    = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
276 # Expect Header = NO CHANGE
277 TAG:^hide-if-modified-since\{block\}$
278
279 {+hide-if-modified-since{-60} -crunch-if-none-match}
280 # Set Header    = If-Modified-Since: Gee, this date is invalid
281 # Expect Header = REMOVAL
282 #
283 # Set Header    = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
284 # Expect Header = SOME CHANGE
285 # Set Header    = If-Modified-Since: Thu, 04-Oct-07 09:56:35 GMT
286 # Expect Header = SOME CHANGE
287 # Set Header    = If-Modified-Since: Thursday, 04-Oct-2007 09:56:35 GMT
288 # Expect Header = SOME CHANGE
289 # Set Header    = If-Modified-Since: Thu, 04-Oct-2007 09:56:35 GMT
290 # Expect Header = SOME CHANGE
291 # Set Header    = If-Modified-Since: Thursday Oct 04 09:56:35 2007 GMT
292 # Expect Header = SOME CHANGE
293 #
294 # Set Header    = If-Modified-Since: Thu, 1 Jan 1970 00:00:00 GMT
295 # Expect Header = SOME CHANGE
296 # Level = 17
297 # Set Header    = If-Modified-Since: Thu, 01-Jan-70 00:00:00 GMT
298 # Expect Header = SOME CHANGE
299 # Level = 17
300 # Set Header    = If-Modified-Since: Thursday, 01-Jan-1970 00:00:00 GMT
301 # Expect Header = SOME CHANGE
302 # Level = 17
303 # Set Header    = If-Modified-Since: Thu, 01-Jan-1970 00:00:00 GMT
304 # Expect Header = SOME CHANGE
305 # Level = 17
306 # Set Header    = If-Modified-Since: Thursday Jan 01 00:00:00 1970 GMT
307 # Expect Header = SOME CHANGE
308 # Level = 17
309 #
310 # Set Header    = If-Modified-Since: Thu, 1 Jan 123456789 00:00:00 GMT
311 # Expect Header = REMOVAL
312 # Set Header    = If-Modified-Since: Thu, 01-Jan-123456789 00:00:00 GMT
313 # Expect Header = REMOVAL
314 # Set Header    = If-Modified-Since: Thursday, 01-Jan-123456789 00:00:00 GMT
315 # Expect Header = REMOVAL
316 # Set Header    = If-Modified-Since: Thu, 01-Jan-123456789 00:00:00 GMT
317 # Expect Header = REMOVAL
318 # Set Header    = If-Modified-Since: Thursday Jan 01 00:00:00 123456789 GMT
319 # Expect Header = REMOVAL
320 #
321 # Set Header    = If-Modified-Since: Mon, 1 Jan 2525 00:00:00 GMT
322 # Expect Header = SOME CHANGE
323 # Level = 17
324 # Set Header    = If-Modified-Since: Mon, 01-Jan-25 00:00:00 GMT
325 # Expect Header = SOME CHANGE
326 # Level = 17
327 # Set Header    = If-Modified-Since: Monday, 01-Jan-2525 00:00:00 GMT
328 # Expect Header = SOME CHANGE
329 # Level = 17
330 # Set Header    = If-Modified-Since: Mon, 01-Jan-2525 00:00:00 GMT
331 # Expect Header = SOME CHANGE
332 # Level = 17
333 # Set Header    = If-Modified-Since: Monday Jan 01 00:00:00 2525 GMT
334 # Expect Header = SOME CHANGE
335 # Level = 17
336 #
337 # Set Header    = If-Modified-Since: Thu, 1 Jan 1970 02:00:00 GMT
338 # Expect Header = SOME CHANGE
339 # Set Header    = If-Modified-Since: Thu, 01-Jan-70 02:00:00 GMT
340 # Expect Header = SOME CHANGE
341 # Set Header    = If-Modified-Since: Thursday, 01-Jan-1970 02:00:00 GMT
342 # Expect Header = SOME CHANGE
343 # Set Header    = If-Modified-Since: Thu, 01-Jan-1970 02:00:00 GMT
344 # Expect Header = SOME CHANGE
345 # Set Header    = If-Modified-Since: Thursday Jan 01 02:00:00 1970 GMT
346 # Expect Header = SOME CHANGE
347 TAG:^hide-if-modified-since\{-60\}$
348
349 {+hide-if-modified-since{+60} -crunch-if-none-match}
350 # Set Header    = If-Modified-Since: Gee, this date is invalid
351 # Expect Header = REMOVAL
352 # Set Header    = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
353 # Expect Header = SOME CHANGE
354 # Set Header    = If-Modified-Since: Wed, 31 Dec 1969 23:59:59 GMT
355 # Expect Header = SOME CHANGE
356 # Level = 17
357 TAG:^hide-if-modified-since\{\+60\}$
358
359 {+hide-if-modified-since{60} -crunch-if-none-match}
360 # Set Header    = If-Modified-Since: Gee, this date is invalid
361 # Expect Header = REMOVAL
362 # Set Header    = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
363 # Expect Header = SOME CHANGE
364 TAG:^hide-if-modified-since\{60\}$
365
366 {+hide-if-modified-since{+0} -crunch-if-none-match}
367 # Set Header    = If-Modified-Since: Gee, this date is invalid
368 # Expect Header = REMOVAL
369 # Set Header    = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
370 # Expect Header = NO CHANGE
371 TAG:^hide-if-modified-since\{\+0\}$
372
373 {+hide-if-modified-since{-0} -crunch-if-none-match}
374 # Set Header    = If-Modified-Since: Gee, this date is invalid
375 # Expect Header = REMOVAL
376 # Set Header    = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
377 # Expect Header = NO CHANGE
378 TAG:^hide-if-modified-since\{-0\}$
379
380 {+hide-if-modified-since{0} -crunch-if-none-match}
381 # Set Header    = If-Modified-Since: Gee, this date is invalid
382 # Expect Header = REMOVAL
383 # Set Header    = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
384 # Expect Header = NO CHANGE
385 TAG:^hide-if-modified-since\{0\}$
386
387 {+hide-if-modified-since{NaN} -crunch-if-none-match}
388 # Set Header    = If-Modified-Since: Gee, this date is invalid
389 # Expect Header = REMOVAL
390 # Set Header    = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
391 # Expect Header = NO CHANGE
392 TAG:^hide-if-modified-since\{NaN\}$
393
394
395 #######################################################
396 # Test crunch-outgoing-cookies
397 #######################################################
398
399 {\
400  +crunch-outgoing-cookies \
401  -crunch-incoming-cookies \
402  -limit-cookie-lifetime   \
403  -session-cookies-only    \
404  -hide-if-modified-since  \
405 }
406 # Set Header    = If-Modified-Since: Gee, this date is invalid
407 # Expect Header = NO CHANGE
408 #
409 # Set Header    = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
410 # Expect Header = REMOVAL
411 TAG:^crunch-outgoing-cookies$
412
413 #######################################################
414 # Test session-cookies-only
415 #
416 # XXX: pretty useless as session-cookies-only doesn't
417 # affect client headers.
418 #######################################################
419
420 {\
421  -crunch-outgoing-cookies \
422  -crunch-incoming-cookies \
423  -limit-cookie-lifetime   \
424  +session-cookies-only    \
425  -hide-if-modified-since  \
426 }
427 # Set Header    = Cookie: NSC_gffe-iuuq-mc-wtfswfs=8efb330d3660;expires=Thu, 04-Oct-07 19:11:34 GMT;path=/
428 # Expect Header = NO CHANGE
429 #
430 # Set Header    = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
431 # Expect Header = NO CHANGE
432 TAG:^session-cookies-only$
433
434 #######################################################
435 # Test change-x-forwarded-for
436 #######################################################
437
438 {\
439  -change-x-forwarded-for \
440 }
441 # Set Header    = X-Forwarded-For: 10.0.0.1
442 # Expect Header = NO CHANGE
443 TAG:^-change-x-forwarded-for$
444
445 {\
446  +change-x-forwarded-for{block} \
447 }
448 # Set Header    = X-Forwarded-For: 10.0.0.1
449 # Expect Header = REMOVAL
450 TAG:^change-x-forwarded-for\{block\}$
451
452 {\
453  +change-x-forwarded-for{add} \
454 }
455 # Set Header    = X-Forwarded-For: 10.0.0.1
456 # Expect Header = SOME CHANGE
457 TAG:^change-x-forwarded-for\{add\}$
458
459 #######################################################
460 # Test hide-from-header
461 #######################################################
462
463 {\
464  +hide-from-header{block}\
465 }
466 # Set Header    = From: schneewitchen@example.org
467 # Expect Header = REMOVAL
468 TAG:^hide-from-header\{block\}$
469
470 {\
471  +hide-from-header{siebenzwerge@example.org}\
472 }
473 # Set Header    = From: schneewitchen@example.org
474 # Expect Header = From: siebenzwerge@example.org
475 TAG:^hide-from-header\{siebenzwerge@example.org\}$
476
477 #######################################################
478 # Test prevent-compression
479 #######################################################
480
481 {\
482  +prevent-compression\
483 }
484 # Set Header    = Accept-Encoding: gzip, deflate
485 # Expect Header = REMOVAL
486 #
487 # Set Header    = Accept-Encoding: gzip
488 # Expect Header = REMOVAL
489 #
490 # Set Header    = Accept-Encoding: deflate
491 # Expect Header = REMOVAL
492 TAG:^prevent-compression$
493
494 #######################################################
495 # Test content filters which could cause problems with
496 # range requests.
497 #######################################################
498
499 {\
500  -client-header-tagger{range-requests} \
501  +deanimate-gifs{last} \
502  -filter \
503 }
504 # Set Header    = Range: bytes=1234-5678
505 # Expect Header = REMOVAL
506 # Set Header    = Range: bytes=1-5
507 # Expect Header = REMOVAL
508 # Set Header    = If-Range: bytes=1234-5678
509 # Expect Header = REMOVAL
510 # Set Header    = Request-Range: bytes=1234-5678
511 # Expect Header = REMOVAL
512 # Set Header    = Range: foo
513 # Expect Header = REMOVAL
514 # Set Header    = If-Range: foo
515 # Expect Header = REMOVAL
516 # Set Header    = Request-Range: foo
517 # Expect Header = REMOVAL
518 # Set Header    = Range: bytes=0-5678
519 # Expect Header = NO CHANGE
520 # Set Header    = Range: bytes=0-
521 # Expect Header = NO CHANGE
522 # Set Header    = If-Range: bytes=0-5678
523 # Expect Header = NO CHANGE
524 # Set Header    = If-Range: bytes=0-
525 # Expect Header = NO CHANGE
526 # Set Header    = Request-Range: bytes=0-5678
527 # Expect Header = NO CHANGE
528 # Set Header    = Request-Range: bytes=0-
529 # Expect Header = NO CHANGE
530 TAG:^deanimate-gifs\{last\}$
531
532 {\
533  -client-header-tagger{range-requests} \
534  -deanimate-gifs \
535  +filter{banners-by-size} \
536 }
537 # Set Header    = Range: bytes=1234-5678
538 # Expect Header = REMOVAL
539 # Set Header    = Range: bytes=1-5
540 # Expect Header = REMOVAL
541 # Set Header    = If-Range: bytes=1234-5678
542 # Expect Header = REMOVAL
543 # Set Header    = Request-Range: bytes=1234-5678
544 # Expect Header = REMOVAL
545 # Set Header    = Range: bytes=1-5
546 # Expect Header = REMOVAL
547 # Set Header    = If-Range: bytes=1234-5678
548 # Expect Header = REMOVAL
549 # Set Header    = Request-Range: bytes=1234-5678
550 # Expect Header = REMOVAL
551 # Set Header    = Range: foo
552 # Expect Header = REMOVAL
553 # Set Header    = If-Range: foo
554 # Expect Header = REMOVAL
555 # Set Header    = Request-Range: foo
556 # Expect Header = REMOVAL
557 # Set Header    = Range: bytes=0-5678
558 # Expect Header = NO CHANGE
559 # Set Header    = Range: bytes=0-
560 # Expect Header = NO CHANGE
561 # Set Header    = If-Range: bytes=0-5678
562 # Expect Header = NO CHANGE
563 # Set Header    = If-Range: bytes=0-
564 # Expect Header = NO CHANGE
565 # Set Header    = Request-Range: bytes=0-5678
566 # Expect Header = NO CHANGE
567 # Set Header    = Request-Range: bytes=0-
568 # Expect Header = NO CHANGE
569 TAG:^filter\{banners-by-size\}$
570
571 {\
572  -client-header-tagger{range-requests} \
573  -deanimate-gifs \
574  -filter \
575 }
576 # Set Header    = Range: bytes=1234-5678
577 # Expect Header = NO CHANGE
578 # Set Header    = If-Range: bytes=1234-5678
579 # Expect Header = NO CHANGE
580 # Set Header    = Request-Range: bytes=1234-5678
581 # Expect Header = NO CHANGE
582 TAG:^no-content-filter$
583
584 {}
585 # Set Header    = Connection: keep-alive
586 # Expect Header = NO CHANGE
587 # Level = 13
588 # Set Header    = Connection:
589 # Expect Header = REMOVAL
590 # Level = 13
591 TAG:^Connection: keep-alive$
592
593 {}
594 # Set Header    = Connection: keep-alive
595 # Expect Header = Connection: close
596 # Level = 14
597 # Set Header    = Connection:
598 # Expect Header = Connection: close
599 # Level = 14
600 TAG:^Connection: close$
601
602 {}
603 # Set Header    = Connection: close
604 # Expect Header = NO CHANGE
605 # Level = 15
606 TAG:^connection-sharing disabled$
607
608 {}
609 # XXX: This test is expected to fail when using "https://p.p/"
610 #      as CGI prefix with https inspection enabled but can't
611 #      yet be automatically skipped. By design connections aren't
612 #      shared when using "https://" so Privoxy does not remove the
613 #      header.
614 # Set Header    = Connection: close
615 # Expect Header = REMOVAL
616 # Level = 16
617 # Set Header    = Connection: keep-alive
618 # Expect Header = NO CHANGE
619 # Level = 16
620 TAG:^connection-sharing enabled$
621
622 {}
623 # XXX: Removing a header by not specifying a value is
624 # an inherited curl feature and could be viewed as a
625 # bug as far as Privoxy-Regression-Test is concerned.
626 #
627 # Set Header    = Host:
628 # Expect Header = Host: p.p
629 TAG:^No Host header$
630
631 {}
632 # XXX: This test is expected to fail when using "https://p.p/"
633 #      as CGI prefix with https inspection enabled but can't
634 #      yet be automatically skipped. The reason for the test
635 #      failure is that Privoxy-Regression-Test only modifies
636 #      the Host header for the CONNECT request, not for the
637 #      actual request that follows. Changing that would not
638 #      fix the test though as a modified Host header in the
639 #      actual request would result in Privoxy attempting to
640 #      connect to it.
641 # Set Header    = Host: whatever.example.org
642 # Expect Header = NO CHANGE
643 TAG:^Host header other than the target host$
644
645 {}
646 # Set Header = Keep-Alive: 20
647 # Expect Header = NO CHANGE
648 # Level = 13
649 # Set Header = Keep-Alive: timeout=20, max=3
650 # Expect Header = NO CHANGE
651 # Level = 13
652 # Set Header = Keep-Alive: blah=fasel, timeout=20, max=3
653 # Expect Header = NO CHANGE
654 # Level = 13
655 # Set Header = Keep-Alive: timeuot=20, max=3
656 # Expect Header = REMOVAL
657 # Level = 13
658 # Set Header = Keep-Alive: twenty seconds please
659 # Expect Header = REMOVAL
660 # Level = 13
661 TAG:^Parse Keep-Alive header$
662
663 {}
664 # Set Header = Keep-Alive: 20
665 # Expect Header = REMOVAL
666 # Level = 14
667 # Set Header = Keep-Alive: timeout=20, max=3
668 # Expect Header = REMOVAL
669 # Level = 14
670 # Set Header = Keep-Alive: blah=fasel, timeout=20, max=3
671 # Expect Header = REMOVAL
672 # Level = 14
673 TAG:^Keep-Alive header removal$
674
675 {}
676 # XXX: check the RFC to use a real value
677 # Set Header = proxy-connection: keep-alive
678 # Expect Header = REMOVAL
679 TAG:^Proxy-Connection removal$
680
681 {}
682 # Set Header = Proxy-Connection: keep-alive
683 # Expect Header = REMOVAL
684 TAG:^Proxy-Connection removal$
685
686 {}
687 # These are somewhat redundant when testing with
688 # GET requests, but I want to remember then when
689 # TRACE requests are supported.
690 #
691 # Set Header = Max-Forwards: 0
692 # Expect Header = NO CHANGE
693 # Set Header = Max-Forwards: 1
694 # Expect Header = NO CHANGE
695 # Set Header = Max-Forwards: -1
696 # Expect Header = NO CHANGE
697 # Set Header = Max-Forwards: 3
698 # Expect Header = NO CHANGE
699 TAG:^Max-Forwards header without TRACE method$
700
701 {}
702 # Set Header = Proxy-Authorization: blafaseldieda
703 # Expect Header = REMOVAL
704 # Level = 22
705 TAG:^Proxy-Authorization header removal$
706
707 {}
708 # Set Header = Proxy-Authorization: blafaseldieda
709 # Expect Header = Proxy-Authorization: blafaseldieda
710 # Level = 23
711 TAG:^Proxy-Authorization header forwarding$
712
713 ################################################################
714 #
715 # Fairly dumb tests for Privoxy CGI pages.
716 #
717 # These are mainly useful for checking for memory leaks
718 # with Valgrind or whether or not the user manual is installed
719 # correctly.
720 #
721 # Note that if "Expect Status Code" is missing, 200 is implied.
722 #
723 ################################################################
724
725 # Fetch Test = http://p.p/
726 # Fetch Test = http://p.p/die
727 # Expect Status Code = 404
728 # Level = 18
729 # Fetch Test = http://p.p/die
730 # Expect Status Code = 200
731 # Level = 19
732 # Fetch Test = http://p.p/show-status
733 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=0
734 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=0
735 # XXX: for the invalid ones we probably shouldn't return status code 200.
736 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=100
737 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=NaN
738 # Fetch Test = http://config.privoxy.org/show-status?file=actions
739 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=100
740 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=NaN
741 # Fetch Test = http://config.privoxy.org/show-status?file=filter
742 # Fetch Test = http://config.privoxy.org/show-status?file=invalid
743 # Fetch Test = http://config.privoxy.org/show-status?file=trust
744 # Fetch Test = http://p.p/show-version
745 # Expect Status Code = 404
746 # Fetch Test = http://p.p/show-request
747 # Fetch Test = http://p.p/show-url-info
748 # Fetch Test = http://p.p/show-url-info?url=www.privoxy.org%2F
749 # Fetch Test = http://p.p/show-url-info?url=http:%2F%2Fwww.privoxy.org%2F
750 # Fetch Test = http://p.p/show-url-info?url=HTTp:%2F%2Fwww.privoxy.org%2F
751 # Fetch Test = http://p.p/show-url-info?url=https:%2F%2Fwww.privoxy.org%2F
752 # Fetch Test = http://p.p/show-url-info?url=HtTps:%2F%2Fwww.privoxy.org%2F
753 # Fetch Test = http://p.p/show-url-info?url=ftp:%2F%2Fwww.privoxy.org%2F
754 # Fetch Test = http://p.p/show-url-info?url=FTp:%2F%2Fwww.privoxy.org%2F
755 # Fetch Test = http://p.p/show-url-info?url=
756 # Fetch Test = http://p.p/show-url-info?url=%2F
757 # Depends on FEATURE_TOGGLE
758 # Fetch Test = http://p.p/toggle
759 # Level = 20
760 # Fetch Test = http://p.p/toggle
761 # Expect Status Code = 403
762 # Level = 21
763 # Fetch Test = http://p.p/edit-actions
764 # Expect Status Code = 403
765 # Level = 12
766 # Fetch Test = http://p.p/eaa
767 # Expect Status Code = 403
768 # Level = 12
769 # Fetch Test = http://p.p/eau
770 # Expect Status Code = 403
771 # Level = 12
772 # Fetch Test = http://p.p/ear
773 # Expect Status Code = 403
774 # Level = 12
775 # Fetch Test = http://p.p/eal
776 # Expect Status Code = 403
777 # Level = 12
778 # Fetch Test = http://p.p/eafu
779 # Expect Status Code = 403
780 # Level = 12
781 # Fetch Test = http://p.p/eas
782 # Expect Status Code = 403
783 # Level = 12
784 # Fetch Test = http://p.p/easa
785 # Expect Status Code = 403
786 # Level = 12
787 # Fetch Test = http://p.p/easr
788 # Expect Status Code = 403
789 # Level = 12
790 # Fetch Test = http://p.p/eass
791 # Expect Status Code = 403
792 # Level = 12
793 # Fetch Test = http://p.p/edit-actions-for-url
794 # Expect Status Code = 403
795 # Level = 12
796 # Fetch Test = http://p.p/edit-actions-list
797 # Level = 12
798 # Fetch Test = http://p.p/edit-actions-submit
799 # Expect Status Code = 403
800 # Level = 12
801 # Expect Status Code = 403
802 # Fetch Test = http://p.p/edit-actions-url
803 # Expect Status Code = 403
804 # Level = 12
805 # Fetch Test = http://p.p/edit-actions-url-form
806 # Expect Status Code = 403
807 # Level = 12
808 # Fetch Test = http://p.p/edit-actions-add-url
809 # Expect Status Code = 403
810 # Level = 12
811 # Fetch Test = http://p.p/edit-actions-add-url-form
812 # Expect Status Code = 403
813 # Level = 12
814 # Fetch Test = http://p.p/edit-actions-remove-url
815 # Expect Status Code = 403
816 # Level = 12
817 # Fetch Test = http://p.p/edit-actions-remove-url-form
818 # Expect Status Code = 403
819 # Level = 12
820 # Fetch Test = http://p.p/edit-actions-section-add
821 # Expect Status Code = 403
822 # Level = 12
823 # Fetch Test = http://p.p/edit-actions-section-remove
824 # Expect Status Code = 403
825 # Level = 12
826 # Fetch Test = http://p.p/edit-actions-section-swap
827 # Expect Status Code = 403
828 # Level = 12
829 # Fetch Test = http://p.p/error-favicon.ico
830 # Fetch Test = http://p.p/favicon.ico
831 # Fetch Test = http://p.p/robots.txt
832 # Fetch Test = http://p.p/send-banner
833 # Trusted CGI Request = http://p.p/send-stylesheet
834 # Fetch Test = http://p.p/send-stylesheet
835 # Expect Status Code = 403
836 # Fetch Test = http://p.p/t
837 # Fetch Test = http://p.p/url-info-osd.xml
838 # Fetch Test = http://p.p/client-tags
839 # Level = 24
840 # Trusted CGI Request = http://p.p/toggle-client-tag
841 # Expect Status Code = 302
842 # Level = 24
843 # Fetch Test = http://p.p/toggle-client-tag
844 # Expect Status Code = 403
845 # Level = 24
846
847 # Trusted CGI Request = http://p.p/edit-actions
848 # Expect Status Code = 302
849 # Level = 12 # Depends on the CGI editor being enabled
850 # Fetch Test = http://p.p/does-not-exist
851 # Expect Status Code = 404
852 # Trusted CGI Request = http://p.p/eaa
853 # Level = 12
854 # Trusted CGI Request = http://p.p/eau
855 # Level = 12
856 # Trusted CGI Request = http://p.p/ear
857 # Level = 12
858 # Trusted CGI Request = http://p.p/eal
859 # Level = 12
860 # Trusted CGI Request = http://p.p/eafu
861 # Level = 12
862 # Trusted CGI Request = http://p.p/eas
863 # Level = 12
864 # Trusted CGI Request = http://p.p/easa
865 # Level = 12
866 # Trusted CGI Request = http://p.p/easr
867 # Level = 12
868 # Trusted CGI Request = http://p.p/eass
869 # Level = 12
870 # Trusted CGI Request = http://p.p/edit-actions-for-url
871 # Level = 12
872 # Trusted CGI Request = http://p.p/edit-actions-list
873 # Level = 12
874 # Trusted CGI Request = http://p.p/edit-actions-submit
875 # Level = 12
876 # Trusted CGI Request = http://p.p/edit-actions-url
877 # Level = 12
878 # Trusted CGI Request = http://p.p/edit-actions-url-form
879 # Level = 12
880 # Trusted CGI Request = http://p.p/edit-actions-add-url
881 # Level = 12
882 # Trusted CGI Request = http://p.p/edit-actions-add-url-form
883 # Level = 12
884 # Trusted CGI Request = http://p.p/edit-actions-remove-url
885 # Level = 12
886 # Trusted CGI Request = http://p.p/edit-actions-remove-url-form
887 # Level = 12
888 # Trusted CGI Request = http://p.p/edit-actions-section-add
889 # Level = 12
890 # Trusted CGI Request = http://p.p/edit-actions-section-remove
891 # Level = 12
892 # Trusted CGI Request = http://p.p/edit-actions-section-swap
893 # Level = 12
894 # Trusted CGI Request = http://p.p/send-stylesheet
895
896 # The following tests depend on Privoxy being configured to deliver the user manual
897
898 # Fetch Test = http://p.p/user-manual
899 # Expect Status Code = 302
900 # Level = 9
901 # Fetch Test = http://p.p/user-manual/
902 # Level = 9
903 # Fetch Test = http://p.p/user-manual/actions-file.html
904 # Level = 9
905 # Fetch Test = http://p.p/user-manual/appendix.html
906 # Level = 9
907 # Fetch Test = http://p.p/user-manual/config.html
908 # Level = 9
909 # Fetch Test = http://p.p/user-manual/configuration.html
910 # Level = 9
911 # Fetch Test = http://p.p/user-manual/contact.html
912 # Level = 9
913 # Fetch Test = http://p.p/user-manual/copyright.html
914 # Level = 9
915 # Fetch Test = http://p.p/user-manual/files-in-use.jpg
916 # Level = 9
917 # Fetch Test = http://p.p/user-manual/filter-file.html
918 # Level = 9
919 # Fetch Test = http://p.p/user-manual/index.html
920 # Level = 9
921 # Fetch Test = http://p.p/user-manual/installation.html
922 # Level = 9
923 # Fetch Test = http://p.p/user-manual/introduction.html
924 # Level = 9
925 # Fetch Test = http://p.p/user-manual/p_doc.css
926 # Level = 9
927 # Fetch Test = http://p.p/user-manual/proxy2.jpg
928 # Level = 9
929 # Fetch Test = http://p.p/user-manual/proxy_setup.jpg
930 # Level = 9
931 # Fetch Test = http://p.p/user-manual/quickstart.html
932 # Level = 9
933 # Fetch Test = http://p.p/user-manual/seealso.html
934 # Level = 9
935 # Fetch Test = http://p.p/user-manual/startup.html
936 # Level = 9
937 # Fetch Test = http://p.p/user-manual/templates.html
938 # Level = 9
939 # Fetch Test = http://p.p/user-manual/whatsnew.html
940 # Level = 9
941
942
943 # Method Test = OPTIONS
944 # Method Test = GET
945 # Method Test = get
946 # Method Test = gEt
947 # Method Test = HEAD
948 # Method Test = POST
949 # Method Test = PUT
950 # Method Test = DELETE
951 # Method Test = OPTIONS
952 # Method Test = TRACE
953 # Method Test = CONNECT
954 # Level = 25
955 # Method Test = PROPFIND
956 # Method Test = PROPPATCH
957 # Method Test = MOVE
958 # Method Test = COPY
959 # Method Test = MKCOL
960 # Method Test = LOCK
961 # Method Test = UNLOCK
962 # Method Test = BCOPY
963 # Method Test = BMOVE
964 # Method Test = BDELETE
965 # Method Test = BPROPFIND
966 # Method Test = BPROPPATCH
967 # Method Test = SUBSCRIBE
968 # Method Test = UNSUBSCRIBE
969 # Method Test = NOTIFY
970 # Method Test = POLL
971 # Method Test = VERSION-CONTROL
972 # Method Test = REPORT
973 # Method Test = CHECKOUT
974 # Method Test = CHECKIN
975 # Method Test = UNCHECKOUT
976 # Method Test = MKWORKSPACE
977 # Method Test = UPDATE
978 # Method Test = LABEL
979 # Method Test = MERGE
980 # Method Test = BASELINE-CONTROL
981 # Method Test = MKACTIVITY
982 # Method Test = PATCH
983 # Method Test = PRIVOXY-REGRESSION-TEST-IN-THE-HOUSE
984 # Expect Status Code = 400
985
986 {+block{Forbidden Port. You are not supposed to see this.}}
987 config.privoxy.org:1-/
988 p.p:1-/
989
990 {-block}
991 config.privoxy.org:3,79-81/
992 p.p:3,22,79-81/
993
994 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
995 # Fetch Test = http://oh-dear-this-hostname-is-so-very-long-that-it-can-not-possibly-be-forwarded-through-socks5-as-a-result-we-therefore-expect-privoxy-to-return-an-error-response-instead-of-forwarding-the-request-because-as-already-mentioned-this-host-is-really-very-long.example
996 # Expect Status Code = 503
997 oh-dear-this-hostname-is-so-very-long-that-it-can-not-possibly-be-forwarded-through-socks5-as-a-result-we-therefore-expect-privoxy-to-return-an-error-response-instead-of-forwarding-the-request-because-as-already-mentioned-this-host-is-really-very-long.example/
998
999 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
1000 # Fetch Test = http://oh-dear-this-hostname-is-short-enough-but-there-is-no-socks5-server-listening.example
1001 # Expect Status Code = 503
1002 oh-dear-this-hostname-is-short-enough-but-there-is-no-socks5-server-listening.example
1003
1004 {+forward-override{forward-socks4 127.0.0.1:12345 .}}
1005 # Fetch Test = http://oh-dear-this-hostname-is-short-enough-but-there-is-no-socks4-server-listening.example
1006 # Expect Status Code = 503
1007 oh-dear-this-hostname-is-short-enough-but-there-is-no-socks4-server-listening.example
1008
1009 {+forward-override{forward-socks4a 127.0.0.1:12345 .}}
1010 # Fetch Test = http://oh-dear-this-hostname-is-short-enough-but-there-is-no-socks4a-server-listening.example
1011 # Expect Status Code = 503
1012 oh-dear-this-hostname-is-short-enough-but-there-is-no-socks4a-server-listening.example
1013
1014 {+forward-override{forward-socks5 127.0.0.1:-1 127.0.0.1:12345}}
1015 # This one currently triggers the same error condition as the
1016 # test above (socks5 server unreachable), but once Privoxy
1017 # starts to properly reject invalid ports it should become useful.
1018 #
1019 # Fetch Test = http://invalid-forward5-gateway-port.example
1020 # Expect Status Code = 503
1021 invalid-forward5-gateway-port.example
1022
1023 {+forward-override{forward-socks5 :12345 127.0.0.1:12345}}
1024 # Fetch Test = http://forward5-null-gateway-host.example
1025 # Expect Status Code = 503
1026 forward5-null-gateway-host.example
1027
1028 {+limit-connect{443}}
1029 # Fetch Test = http://www.forbidden-connect.example:444/
1030 # Method = CONNECT
1031 # Expect Status Code = 403
1032 www.forbidden-connect.example/
1033
1034 {+block{This request failed to make it to the target destination which means the test succeeded.}}
1035 # Fetch Test = http://www.blocked-request.example/blocked-request
1036 # Expect Status Code = 403
1037 www.blocked-request.example/blocked-request
1038
1039 {+block}
1040 # Fetch Test = http://www.blocked-request.example/blocked-request-with-no-reason-specified
1041 # Expect Status Code = 403
1042 www.blocked-request.example/blocked-request-with-no-reason-specified
1043
1044 # Some domain pattern tests
1045 #
1046 {+block{domain pattern test}}
1047 # Blocked URL = http://domain-pattern-test.example/
1048 # Blocked URL = http://domain-pattern-test.example.org/
1049 domain-pattern-test.example.
1050
1051 {+block{Hostname patterns without trailing dots cover hostnames with trailing dots as well.}}
1052 # Blocked URL = http://trailing-dot.example.org./
1053 # Blocked URL = http://trailing-dot.example.org./foo
1054 trailing-dot.example.org
1055
1056 {}
1057 # Just in case there is no white-space fuzzer in the house ...
1058 #
1059 # Set Header = X-LWS-Test: no superfluous white space here
1060 # Expect Header = NO CHANGE
1061 # Set Header = X-LWS-Test:  superfluous   white space  in  the   house
1062 # Expect Header = X-LWS-Test: superfluous white space in the house
1063 # Set Header = X-LWS-Test   :  superfluous   white   space   in   the    house
1064 # Expect Header = X-LWS-Test: superfluous white space in the house
1065 # Set Header = X-LWS-Test:  :superfluous white space in the house
1066 # Expect Header = X-LWS-Test: :superfluous white space in the house
1067 # Set Header = X-LWS-Test: :no superfluous white space here
1068 # Expect Header = NO CHANGE
1069 # Set Header = X-LWS-Test:      superfluous             white                   tabs in the house
1070 # Expect Header = X-LWS-Test: superfluous white tabs in the house
1071 # Set Header = X-LWS-Test       :       superfluous             white                   tabs in the house
1072 # Expect Header = X-LWS-Test: superfluous white tabs in the house
1073 # Set Header = X-LWS-Test: "leave  quoted  lws alone"
1074 # Expect Header = X-LWS-Test: "leave  quoted  lws alone"
1075 # Set Header = X-LWS-Test:  "leave  quoted  lws alone"  thxbye
1076 # Expect Header = X-LWS-Test: "leave  quoted  lws alone" thxbye
1077 # Set Header = X-LWS-Test: " Do I Look like     quoted  text? Me    thinks  not.
1078 # Expect Header = X-LWS-Test: " Do I Look like quoted text? Me thinks not.
1079 # Set Header = X-LWS-Test: "This  is  quoted" this  is  not "but   this  is  again"
1080 # Expect Header = X-LWS-Test: "This  is  quoted" this is not "but   this  is  again"
1081 # Set Header = X-LWS-Test:  "This  is  quoted" this   is  not "this  is  "  but  "  this again   is  not
1082 # Expect Header = X-LWS-Test: "This  is  quoted" this is not "this  is  " but " this again is not
1083 TAG:^LWS Tests$
1084
1085 {+fast-redirects{check-decoded-url}}
1086 # Redirected URL = http://redirect.example.net/blafasel&url=http://redirected1.example.net/
1087 # Redirect Destination = http://redirected1.example.net/
1088 # Redirected URL = http://redirect.example.net/blafasel&url=http%3A%2F%2Fredirected2.example.net%2F&parameter=not-part-of-the-redirected-url
1089 # Redirect Destination = http://redirected2.example.net/
1090 # Redirected URL = http://redirect.example.net/blafasel&url=http%3A%2F%2Fredirected3.example.net%2F&parameter=not-part-of-the-redirected-url
1091 # Redirect Destination = http://redirected3.example.net/
1092 # Redirected URL = http://redirect.example.net/blafasel&url=http%3A%2F%2Fredirected4.example.net%2F%26parameter=part-of-the-redirected-url
1093 # Redirect Destination = http://redirected4.example.net/&parameter=part-of-the-redirected-url
1094 # Redirected URL = http://redirect.example.net/blafasel&url1=http%3A%2F%2Fredirected5.example.net%2F%26parameter1=part-of-the-redirected-url&url2=http%3A%2F%2Fredirected5.example.net%2F%26parameter2=part-of-the-redirected-url2
1095 # Redirect Destination = http://redirected5.example.net/&parameter2=part-of-the-redirected-url2
1096 # Redirected URL = http://redirect.example.net/blafasel&url1=http%3A%2F%2Fredirected6.example.net%2F%26parameter1=part-of-the-redirected-url&url2=http%3A%2F%2Fredirected6.example.net%2F%26parameter2=part-of-the-redirected-url2&parameter3=not-part-of-the-redirected-url2
1097 # Redirect Destination = http://redirected6.example.net/&parameter2=part-of-the-redirected-url2
1098 # Redirected URL = http://redirect.example.net/blafasel?x=http%3A%2F%2Fredirected7.example.net%2F%26parameter1=part-of-the-redirected-url1&parameter2=not-part-of-the-redirected-url1
1099 # Redirect Destination = http://redirected7.example.net/&parameter1=part-of-the-redirected-url1
1100 # Redirected URL = http://redirect.example.net/blafasel?x=http%3A%2F%2Fredirected8.example.net%2F%26parameter1=part-of-the-redirected-url1&parameter2=not-part-of-the-redirected-url1&parameter3=not-part-of-the-redirected-url1
1101 # Redirect Destination = http://redirected8.example.net/&parameter1=part-of-the-redirected-url1
1102 # Redirected URL = http://redirect.example.net/blafasel?a?b?c?d?e?f?g?h?i?j?k?l?m?n?o?p?q?r?s&t&u&v&w&x&y&z&1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16x=http%3A%2F%2Fredirected8.example.net%2F%26parameter1=part-of-the-redirected-url1&parameter2=not-part-of-the-redirected-url1&parameter3=not-part-of-the-redirected-url1
1103 # Redirect Destination = http://redirected8.example.net/&parameter1=part-of-the-redirected-url1
1104 # Redirected URL = http://redirect.example.net/blafasel???????????????????????????????=http%3A%2F%2Fredirected8.example.net%2F%26parameter1=part-of-the-redirected-url1&parameter2=not-part-of-the-redirected-url1&parameter3=not-part-of-the-redirected-url1
1105 # Redirect Destination = http://redirected8.example.net/&parameter1=part-of-the-redirected-url1
1106 # Redirected URL = http://redirect.example.net/blafasel&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&=http%3A%2F%2Fredirected8.example.net%2F%26parameter1=part-of-the-redirected-url1&parameter2=not-part-of-the-redirected-url1&parameter3=not-part-of-the-redirected-url1
1107 # Redirect Destination = http://redirected8.example.net/&parameter1=part-of-the-redirected-url1
1108 redirect.example.net/
1109 # Redirected URL = http://redirect.example.net/blafaselhttp://redirect1.example.net/http://redirect2.example.net/
1110 # Redirect Destination = http://redirect2.example.net/
1111 # Redirected URL = http://redirect.example.net/blafasel%3A%2F%2Fredirect1.example.net/http://redirect2.example.net/
1112 # Redirect Destination = http://redirect2.example.net/
1113 # Redirected URL = http://redirect.example.net/blafaselhttp://redirect1.example.net/http%3A%2F%2Fredirect2.example.net/
1114 # Redirect Destination = http://redirect2.example.net/
1115 # These tests verify that Privoxy behaves as intended,
1116 # given that the encoded redirect URLs are invalid,
1117 # there are no correct redirect URLs.
1118 # Redirected URL = http://redirect.example.net/%%%%%%%%%%%%%%%%%%%%%%blafaselhttp://redirect1.example.net/http%3A%2F%2Fredirect2.example.net/%%%%%%%%%%%%%%
1119 # Redirect Destination = http://redirect2.example.net/%%%%%%%%%%%%%%
1120 # Redirected URL = http://redirect.example.net/%%%%%%%%%%%%%%%%%%%%%%blafaselhttp://redirect1.example.net/http%3A%2F%2Fredirect2.example.net/%1%2%%3%4%5%6%7%8%9%0%0%%
1121 # Redirect Destination = http://redirect2.example.net/%1%2%%3%4%5%6%7%8%9%0%0%%
1122
1123 {+fast-redirects{simple-check}}
1124 # Redirected URL = http://redirect2.example.net/blafasel?x=http://redirected.example.net/&parameter1=part-of-the-redirected-url1&parameter2=part-of-the-redirected-url1
1125 # Redirect Destination = http://redirected.example.net/&parameter1=part-of-the-redirected-url1&parameter2=part-of-the-redirected-url1
1126 redirect2.example.net/
1127
1128 {+delay-response{1}}
1129 # Fetch Test = http://config.privoxy.org/show-url-info?url=http%3A%2F%2Fwww.example.com%2Fprivoxy-test-delay-response
1130 config.privoxy.org/show-url-info\?url=http%3A%2F%2Fwww\.example\.com%2Fprivoxy-test-delay-response
1131
1132 {+block{Block with pcre host pattern}}
1133 # Blocked URL = http://aaa.example.org/
1134 # Level = 26
1135 PCRE-HOST-PATTERN:^a{3}\.example\.org$
1136 # Blocked URL = http://bbb.example.org/
1137 # Level = 26
1138 PCRE-HOST-PATTERN:^(bbb|ccc|ddd)\.example\.org$