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