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