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