1 #############################################################################
2 # $Id: regression-tests.action,v 1.63 2008/03/28 19:03:49 fk Exp $
3 #############################################################################
5 # This is a configuration file for Privoxy-Regression-Test.
7 # After referencing it in your Privoxy configuration both Privoxy and
8 # Privoxy-Regression-Test should be good to go.
10 #############################################################################
12 # Copyright (c) 2007-2008 Fabian Keil <fk@fabiankeil.de>
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.
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.
26 #############################################################################
29 for-privoxy-version=3.0.9
31 # Some dependencies Privoxy-Regression-Test should know about:
33 # Level 9 needs = config line user-manual\s+/
34 # Level 12 needs = config line enable-edit-actions\s+1
36 #######################################################
37 # Enable taggers to activate the tests on demand
38 # and suppress hiding the User-Agent for
39 # Privoxy-Regression-Test to save log space.
40 #######################################################
42 +client-header-tagger{user-agent} \
43 +client-header-tagger{privoxy-control} \
44 +client-header-filter{privoxy-control} \
50 TAG:^User-Agent: Privoxy-Regression-Test
52 #######################################################
53 # Test accept-language{}.
54 #######################################################
56 # Set Header = Accept-Language: de-de
57 # Expect Header = Accept-Language: en-gb
58 {+hide-accept-language{en-gb}}
59 TAG:^hide-accept-language\{en-gb\}$
61 # Set Header = Accept-Language: de-de
62 # Expect Header = REMOVAL
63 {+hide-accept-language{block}}
64 TAG:^hide-accept-language\{block\}$
66 #######################################################
67 # Sections for hide-referrer{} to test:
69 # 1) conditional-block
70 # 2) conditional-forge
73 # 5) a parameter that looks like a valid fake referrer
74 # 6) a parameter that looks like an invalid fake referrer
75 #######################################################
77 # Set Header = Referer: http://www.example.org/foo
78 # Expect Header = REMOVAL
80 # Set Header = Referer: http://p.p/foo
81 # Expect Header = NO CHANGE
82 {+hide-referrer{conditional-block}}
83 TAG:^hide-referrer\{conditional-block\}$
85 # Set Header = Referer: http://www.example.org/foo
86 # Expect Header = Referer: http://p.p/
88 # Set Header = Referer: http://p.p/foo
89 # Expect Header = NO CHANGE
90 {+hide-referrer{conditional-forge}}
91 TAG:^hide-referrer\{conditional-forge\}$
93 # Set Header = Referer: http://www.example.org/foo
94 # Expect Header = Referer: http://p.p/
95 {+hide-referrer{forge}}
96 TAG:^hide-referrer\{forge\}$
98 # Set Header = Referer: http://www.example.org/foo
99 # Expect Header = REMOVAL
100 {+hide-referrer{block}}
101 TAG:^hide-referrer\{block\}$
103 # Set Header = Referer: http://www.example.org/foo
104 # Expect Header = Referer: invalid
105 {+hide-referrer{invalid}}
106 TAG:^hide-referrer\{invalid\}$
108 # Set Header = Referer: http://www.example.org/asdf
109 # Expect Header = Referer: http://www.privoxy.org/
110 {+hide-referrer{http://www.privoxy.org/}}
111 TAG:^hide-referrer\{http://www.privoxy.org/\}$
114 #TAG:^hide-referrer\{\}$
116 #######################################################
117 # Test hide-user-agent{}.
118 #######################################################
120 # 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
121 # 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
122 {+hide-user-agent{Mozilla/5.0 (X11; U; FreeBSD alpha; en-GB; rv:1.8.1.6) Gecko/20070913 Firefox/2.0.0.6}}
123 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\}$
125 # XXX: Check the code that is tested here.
126 # Set Header = ua-blah: blah
127 # Expect Header = REMOVAL
128 {+hide-user-agent{block}}
129 TAG:^hide-user-agent{block}$
131 # Set Header = ua-blah: blah
132 # Expect Header = NO CHANGE
134 TAG:^-hide-user-agent{block}$
137 #######################################################
139 #######################################################
141 # Set Header = X-Whatever: foo
142 # Expect Header = X-Custom-Header: yes, please
144 {+add-header{X-Custom-Header: yes, please}}
145 TAG:^add-header\{X-Custom-Header: yes, please\}$
147 #######################################################
148 # Test client-header-filter{hide-tor-exit-notation}.
149 #######################################################
151 # Set Header = Referer: http://p.p.zwiebelsuppe.exit/
152 # Expect Header = Referer: http://p.p/
154 # Set Header = Referer: http://p.p.zwiebelsuppe.exit/foo/bar/baaz/
155 # Expect Header = Referer: http://p.p/foo/bar/baaz/
157 # Set Header = Referer: http://p.p/
158 # Expect Header = NO CHANGE
160 # Set Header = Referer: http://config.privoxy.org.zwiebelsuppe.exit/foo/bar/baaz.html
161 # Expect Header = Referer: http://config.privoxy.org/foo/bar/baaz.html
163 # Set Header = Host: p.p.zwiebelsuppe.exit
164 # Expect Header = Host: p.p
166 # Set Header = Host: p.p
167 # Expect Header = NO CHANGE
169 # Set Header = Referer: http://config.privoxy.org.ad356ef8e87a89e6c898b74500d58607ac691178.exit/foo/baaz.html
170 # Expect Header = Referer: http://config.privoxy.org/foo/baaz.html
172 {+client-header-filter{hide-tor-exit-notation} -hide-referer}
173 TAG:^client-header-filter\{hide-tor-exit-notation\}$
175 #######################################################
176 # Test crunch-client-header{}.
177 #######################################################
179 # Set Header = Content-Type: text/html
180 # Expect Header = REMOVAL
182 # Set Header = Content-Type: text/html; charset=4711
183 # Expect Header = REMOVAL
185 # Set Header = Content-Type: text/plain
186 # Expect Header = NO CHANGE
188 {+crunch-client-header{text/html}}
189 TAG:^crunch-client-header\{text/plain\}$
192 #######################################################
193 # Test crunch-if-none-match.
194 #######################################################
196 # Set Header = If-None-Match: 8987afd239d2093kd2309kd
197 # Expect Header = REMOVAL
199 # Set Header = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
200 # Expect Header = REMOVAL
202 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
203 # Expect Header = NO CHANGE
205 {+crunch-if-none-match -hide-if-modified-since}
206 TAG:^crunch-if-none-match$
208 #######################################################
209 # Test hide-if-modified-since
210 #######################################################
212 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
213 # Expect Header = REMOVAL
215 # Set Header = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
216 # Expect Header = NO CHANGE
218 {+hide-if-modified-since{block} -crunch-if-none-match}
219 TAG:^hide-if-modified-since\{block\}$
221 # Set Header = If-Modified-Since: Gee, this date is invalid
222 # Expect Header = REMOVAL
223 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
224 # Expect Header = SOME CHANGE
226 {+hide-if-modified-since{-60} -crunch-if-none-match}
227 TAG:^hide-if-modified-since\{-60\}$
229 # Set Header = If-Modified-Since: Gee, this date is invalid
230 # Expect Header = REMOVAL
231 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
232 # Expect Header = SOME CHANGE
234 {+hide-if-modified-since{+60} -crunch-if-none-match}
235 TAG:^hide-if-modified-since\{\+60\}$
237 # Set Header = If-Modified-Since: Gee, this date is invalid
238 # Expect Header = REMOVAL
239 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
240 # Expect Header = SOME CHANGE
242 {+hide-if-modified-since{60} -crunch-if-none-match}
243 TAG:^hide-if-modified-since\{60\}$
245 # Set Header = If-Modified-Since: Gee, this date is invalid
246 # Expect Header = REMOVAL
247 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
248 # Expect Header = NO CHANGE
250 {+hide-if-modified-since{+0} -crunch-if-none-match}
251 TAG:^hide-if-modified-since\{\+0\}$
253 # Set Header = If-Modified-Since: Gee, this date is invalid
254 # Expect Header = REMOVAL
255 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
256 # Expect Header = NO CHANGE
258 {+hide-if-modified-since{-0} -crunch-if-none-match}
259 TAG:^hide-if-modified-since\{-0\}$
261 # Set Header = If-Modified-Since: Gee, this date is invalid
262 # Expect Header = REMOVAL
263 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
264 # Expect Header = NO CHANGE
266 {+hide-if-modified-since{0} -crunch-if-none-match}
267 TAG:^hide-if-modified-since\{0\}$
269 # Set Header = If-Modified-Since: Gee, this date is invalid
270 # Expect Header = REMOVAL
271 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
272 # Expect Header = NO CHANGE
274 {+hide-if-modified-since{NaN} -crunch-if-none-match}
275 TAG:^hide-if-modified-since\{NaN\}$
278 #######################################################
279 # Test crunch-outgoing-cookies
280 #######################################################
282 # Set Header = If-Modified-Since: Gee, this date is invalid
283 # Expect Header = NO CHANGE
285 # Set Header = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
286 # Expect Header = REMOVAL
288 +crunch-outgoing-cookies \
289 -crunch-incoming-cookies \
290 -session-cookies-only \
291 -hide-if-modified-since \
293 TAG:^crunch-outgoing-cookies$
295 #######################################################
296 # Test session-cookies-only
298 # XXX: pretty useless as session-cookies-only doesn't
299 # affect client headers.
300 #######################################################
302 # Set Header = Cookie: NSC_gffe-iuuq-mc-wtfswfs=8efb330d3660;expires=Thu, 04-Oct-07 19:11:34 GMT;path=/
303 # Expect Header = NO CHANGE
305 # Set Header = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
306 # Expect Header = NO CHANGE
308 -crunch-outgoing-cookies \
309 -crunch-incoming-cookies \
310 +session-cookies-only \
311 -hide-if-modified-since \
313 TAG:^session-cookies-only$
315 #######################################################
316 # Test hide-forwarded-for-headers
317 #######################################################
319 # Set Header = X-Forwarded-For: 10.0.0.1
320 # Expect Header = REMOVAL
322 +hide-forwarded-for-headers \
324 TAG:^hide-forwarded-for-headers$
326 # Set Header = X-Forwarded-For: 10.0.0.1
327 # Expect Header = NO CHANGE
329 -hide-forwarded-for-headers \
331 TAG:^-hide-forwarded-for-headers$
333 #######################################################
334 # Test hide-from-header
335 #######################################################
337 # Set Header = From: schneewitchen@example.org
338 # Expect Header = REMOVAL
340 +hide-from-header{block}\
342 TAG:^hide-from-header\{block\}$
344 # Set Header = From: schneewitchen@example.org
345 # Expect Header = From: siebenzwerge@example.org
347 +hide-from-header{siebenzwerge@example.org}\
349 TAG:^hide-from-header\{siebenzwerge@example.org\}$
351 #######################################################
352 # Test prevent-compression
353 #######################################################
355 # Set Header = Accept-Encoding: gzip, deflate
356 # Expect Header = REMOVAL
358 # Set Header = Accept-Encoding: gzip
359 # Expect Header = REMOVAL
361 # Set Header = Accept-Encoding: deflate
362 # Expect Header = REMOVAL
364 +prevent-compression\
366 TAG:^prevent-compression$
368 #######################################################
369 # Test content filters which could cause problems with
371 #######################################################
373 # Set Header = Range: bytes=1234-5678
374 # Expect Header = REMOVAL
375 # Set Header = If-Range: bytes=1234-5678
376 # Expect Header = REMOVAL
377 # Set Header = Request-Range: bytes=1234-5678
378 # Expect Header = REMOVAL
380 +deanimate-gifs{last} \
383 TAG:^deanimate-gifs\{last\}$
385 # Set Header = Range: bytes=1234-5678
386 # Expect Header = REMOVAL
387 # Set Header = If-Range: bytes=1234-5678
388 # Expect Header = REMOVAL
389 # Set Header = Request-Range: bytes=1234-5678
390 # Expect Header = REMOVAL
393 +filter{banners-by-size} \
395 TAG:^filter\{banners-by-size\}$
397 # Set Header = Range: bytes=1234-5678
398 # Expect Header = NO CHANGE
399 # Set Header = If-Range: bytes=1234-5678
400 # Expect Header = NO CHANGE
401 # Set Header = Request-Range: bytes=1234-5678
402 # Expect Header = NO CHANGE
407 TAG:^no-content-filter$
409 # Set Header = Connection: keep-alive
410 # Expect Header = Connection: close
411 # Set Header = Connection:
412 # Expect Header = Connection: close
414 TAG:^Connection: close$
416 # XXX: Removing a header by not specifying a value is
417 # an inherited curl feature and could be viewed as a
418 # bug as far as Privoxy-Regression-Test is concerned.
421 # Expect Header = Host: p.p
425 # Set Header = Host: whatever.example.org
426 # Expect Header = NO CHANGE
428 TAG:^Host header other than the target host$
430 # XXX: check the RFC to use a real value
431 # Set Header = Keep-Alive: Yes
432 # Expect Header = REMOVAL
434 TAG:^Keep-Alive header removal$
436 # XXX: check the RFC to use a real value
437 # Set Header = proxy-connection: keep-alive
438 # Expect Header = REMOVAL
440 TAG:^Proxy-Connection removal$
442 # Set Header = Proxy-Connection: keep-alive
443 # Expect Header = REMOVAL
445 TAG:^Proxy-Connection removal$
447 # These are somewhat redundant when testing with
448 # GET requests, but I want to remember then when
449 # TRACE requests are supported.
451 # Set Header = Max-Forwards: 0
452 # Expect Header = NO CHANGE
453 # Set Header = Max-Forwards: 1
454 # Expect Header = NO CHANGE
455 # Set Header = Max-Forwards: -1
456 # Expect Header = NO CHANGE
457 # Set Header = Max-Forwards: 3
458 # Expect Header = NO CHANGE
460 TAG:^Max-Forwards header without TRACE method$
462 ################################################################
464 # Fairly dumb tests for Privoxy CGI pages.
466 # These are mainly useful for checking for memory leaks
467 # with Valgrind or whether or not the user manual is installed
468 # correctly and are unlikely to actually detect any
470 # Note that if "Expect Status Code" is missing, 200 is implied.
472 ################################################################
474 # Fetch Test = http://p.p/
475 # Will fail if compiled with FEATURE_GRACEFUL_TERMINATION
476 # Fetch Test = http://p.p/die
477 # Expect Status Code = 404
478 # Fetch Test = http://p.p/show-status
479 # Fetch Test = http://p.p/show-version
480 # Fetch Test = http://p.p/show-request
481 # Fetch Test = http://p.p/show-url-info
482 # Fetch Test = http://p.p/show-url-info?url=www.privoxy.org%2F
483 # Fetch Test = http://p.p/show-url-info?url=http:%2F%2Fwww.privoxy.org%2F
484 # Fetch Test = http://p.p/show-url-info?url=https:%2F%2Fwww.privoxy.org%2F
485 # Fetch Test = http://p.p/show-url-info?url=
486 # Fetch Test = http://p.p/show-url-info?url=%2F
487 # Fetch Test = http://p.p/toggle
488 # Fetch Test = http://p.p/edit-actions
489 # Fetch Test = http://p.p/eaa
490 # Fetch Test = http://p.p/eau
491 # Fetch Test = http://p.p/ear
492 # Fetch Test = http://p.p/eal
493 # Fetch Test = http://p.p/eafu
494 # Fetch Test = http://p.p/eas
495 # Fetch Test = http://p.p/easa
496 # Fetch Test = http://p.p/easr
497 # Fetch Test = http://p.p/eass
498 # Fetch Test = http://p.p/edit-actions-for-url
499 # Fetch Test = http://p.p/edit-actions-list
500 # Fetch Test = http://p.p/edit-actions-submit
501 # Fetch Test = http://p.p/edit-actions-url
502 # Fetch Test = http://p.p/edit-actions-url-form
503 # Fetch Test = http://p.p/edit-actions-add-url
504 # Fetch Test = http://p.p/edit-actions-add-url-form
505 # Fetch Test = http://p.p/edit-actions-remove-url
506 # Fetch Test = http://p.p/edit-actions-remove-url-form
507 # Fetch Test = http://p.p/edit-actions-section-add
508 # Fetch Test = http://p.p/edit-actions-section-remove
509 # Fetch Test = http://p.p/edit-actions-section-swap
510 # Fetch Test = http://p.p/error-favicon.ico
511 # Fetch Test = http://p.p/favicon.ico
512 # Fetch Test = http://p.p/robots.txt
513 # Fetch Test = http://p.p/send-banner
514 # Fetch Test = http://p.p/send-stylesheet
515 # Fetch Test = http://p.p/t
516 # Trusted CGI Request = http://p.p/edit-actions
517 # Expect Status Code = 302
518 # Level = 12 # Depends on the CGI editor being enabled
519 # Fetch Test = http://p.p/does-not-exist
520 # Expect Status Code = 404
521 # Trusted CGI Request = http://p.p/eaa
522 # Trusted CGI Request = http://p.p/eau
523 # Trusted CGI Request = http://p.p/ear
524 # Trusted CGI Request = http://p.p/eal
525 # Trusted CGI Request = http://p.p/eafu
526 # Trusted CGI Request = http://p.p/eas
527 # Trusted CGI Request = http://p.p/easa
528 # Trusted CGI Request = http://p.p/easr
529 # Trusted CGI Request = http://p.p/eass
530 # Trusted CGI Request = http://p.p/edit-actions-for-url
531 # Trusted CGI Request = http://p.p/edit-actions-list
532 # Trusted CGI Request = http://p.p/edit-actions-submit
533 # Trusted CGI Request = http://p.p/edit-actions-url
534 # Trusted CGI Request = http://p.p/edit-actions-url-form
535 # Trusted CGI Request = http://p.p/edit-actions-add-url
536 # Trusted CGI Request = http://p.p/edit-actions-add-url-form
537 # Trusted CGI Request = http://p.p/edit-actions-remove-url
538 # Trusted CGI Request = http://p.p/edit-actions-remove-url-form
539 # Trusted CGI Request = http://p.p/edit-actions-section-add
540 # Trusted CGI Request = http://p.p/edit-actions-section-remove
541 # Trusted CGI Request = http://p.p/edit-actions-section-swap
542 # Trusted CGI Request = http://p.p/send-stylesheet
544 # The following tests depend on Privoxy being configured to deliver the user manual
546 # Fetch Test = http://p.p/user-manual
547 # Expect Status Code = 302
549 # Fetch Test = http://p.p/user-manual/
551 # Fetch Test = http://p.p/user-manual/actions-file.html
553 # Fetch Test = http://p.p/user-manual/appendix.html
555 # Fetch Test = http://p.p/user-manual/config.html
557 # Fetch Test = http://p.p/user-manual/configuration.html
559 # Fetch Test = http://p.p/user-manual/contact.html
561 # Fetch Test = http://p.p/user-manual/copyright.html
563 # Fetch Test = http://p.p/user-manual/files-in-use.jpg
565 # Fetch Test = http://p.p/user-manual/filter-file.html
567 # Fetch Test = http://p.p/user-manual/index.html
569 # Fetch Test = http://p.p/user-manual/installation.html
571 # Fetch Test = http://p.p/user-manual/introduction.html
573 # Fetch Test = http://p.p/user-manual/p_doc.css
575 # Fetch Test = http://p.p/user-manual/proxy2.jpg
577 # Fetch Test = http://p.p/user-manual/proxy_setup.jpg
579 # Fetch Test = http://p.p/user-manual/quickstart.html
581 # Fetch Test = http://p.p/user-manual/seealso.html
583 # Fetch Test = http://p.p/user-manual/startup.html
585 # Fetch Test = http://p.p/user-manual/templates.html
587 # Fetch Test = http://p.p/user-manual/upgradersnote.html
589 # Fetch Test = http://p.p/user-manual/whatsnew.html
593 # Method Test = OPTIONS
600 # Method Test = DELETE
601 # Method Test = OPTIONS
602 # Method Test = TRACE
603 # Method Test = CONNECT
604 # Method Test = PROPFIND
605 # Method Test = PROPPATCH
608 # Method Test = MKCOL
610 # Method Test = UNLOCK
611 # Method Test = BCOPY
612 # Method Test = BMOVE
613 # Method Test = BDELETE
614 # Method Test = BPROPFIND
615 # Method Test = BPROPPATCH
616 # Method Test = SUBSCRIBE
617 # Method Test = UNSUBSCRIBE
618 # Method Test = NOTIFY
620 # Method Test = VERSION-CONTROL
621 # Method Test = REPORT
622 # Method Test = CHECKOUT
623 # Method Test = CHECKIN
624 # Method Test = UNCHECKOUT
625 # Method Test = MKWORKSPACE
626 # Method Test = UPDATE
627 # Method Test = LABEL
628 # Method Test = MERGE
629 # Method Test = BASELINE-CONTROL
630 # Method Test = MKACTIVITY
631 # Method Test = PRIVOXY-REGRESSION-TEST-IN-THE-HOUSE
632 # Expect Status Code = 400
634 {+block{Forbidden Port. You are not supposed to see this.}}
635 config.privoxy.org:1-/
639 config.privoxy.org:3,79-81/
642 # 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
643 # Expect Status Code = 503
644 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
645 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/
647 # Fetch Test = http://oh-dear-this-hostname-is-short-enough-but-there-is-no-socks-server-listening.example
648 # Expect Status Code = 503
649 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
650 oh-dear-this-hostname-is-short-enough-but-there-is-no-socks-server-listening.example
652 # This one currently triggers the same error condition as the
653 # test above (socks5 server unreachable), but once Privoxy
654 # starts to properly reject invalid ports it should become useful.
656 # Fetch Test = http://invalid-forward5-gateway-port.example
657 # Expect Status Code = 503
658 {+forward-override{forward-socks5 127.0.0.1:-1 127.0.0.1:12345}}
659 invalid-forward5-gateway-port.example
661 # Fetch Test = http://forward5-null-gateway-host.example
662 # Expect Status Code = 503
663 {+forward-override{forward-socks5 :12345 127.0.0.1:12345}}
664 forward5-null-gateway-host.example
666 # Fetch Test = http://www.forbidden-connect.example:444/forbidden-connect
668 # Expect Status Code = 403
669 {+limit-connect{443}}
670 www.forbidden-connect.example/forbidden-connect
672 # Fetch Test = http://www.blocked-request.example/blocked-request
673 # Expect Status Code = 403
674 {+block{This request failed to make it to the target destination which means the test succeeded.}}
675 www.blocked-request.example/blocked-request
677 # Fetch Test = http://www.blocked-request.example/blocked-request-with-no-reason-specified
678 # Expect Status Code = 403
680 www.blocked-request.example/blocked-request-with-no-reason-specified