1 #############################################################################
2 # $Id: regression-tests.action,v 1.26 2009/06/10 13:15:35 fabiankeil Exp $
3 #############################################################################
5 # This is a configuration file for Privoxy-Regression-Test
6 # (included in the source tarball's tools directory).
8 # After referencing it in your Privoxy configuration both Privoxy and
9 # Privoxy-Regression-Test should be good to go.
11 #############################################################################
13 # Copyright (c) 2007-2009 Fabian Keil <fk@fabiankeil.de>
15 # Permission to use, copy, modify, and distribute this software for any
16 # purpose with or without fee is hereby granted, provided that the above
17 # copyright notice and this permission notice appear in all copies.
19 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
20 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
21 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
22 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
23 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
24 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
25 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
27 #############################################################################
30 for-privoxy-version=3.0.13
32 # Some dependencies Privoxy-Regression-Test should know about:
34 # Level 9 needs = config line user-manual\s+(\.?\.?/|[A-Za-z]:)
35 # Level 12 needs = config line enable-edit-actions\s+1
36 # Level 13 needs = feature status FEATURE_CONNECTION_KEEP_ALIVE Yes
37 # Level 13 needs = config line keep-alive-timeout\s+[1-9]+
38 # Level 14 needs = feature status FEATURE_CONNECTION_KEEP_ALIVE No
39 # Level 15 needs = config line connection-sharing\s+0
40 # Level 16 needs = config line connection-sharing\s+1
42 #######################################################
43 # Enable taggers to activate the tests on demand
44 # and suppress hiding the User-Agent for
45 # Privoxy-Regression-Test to save log space.
46 #######################################################
48 +client-header-tagger{user-agent} \
49 +client-header-tagger{privoxy-control} \
50 +client-header-filter{privoxy-control} \
57 TAG:^User-Agent: Privoxy-Regression-Test
59 #######################################################
60 # Test accept-language{}.
61 #######################################################
63 # Set Header = Accept-Language: de-de
64 # Expect Header = Accept-Language: en-gb
65 {+hide-accept-language{en-gb}}
66 TAG:^hide-accept-language\{en-gb\}$
68 # Set Header = Accept-Language: de-de
69 # Expect Header = REMOVAL
70 {+hide-accept-language{block}}
71 TAG:^hide-accept-language\{block\}$
73 #######################################################
74 # Sections for hide-referrer{} to test:
76 # 1) conditional-block
77 # 2) conditional-forge
80 # 5) a parameter that looks like a valid fake referrer
81 # 6) a parameter that looks like an invalid fake referrer
82 #######################################################
84 # Set Header = Referer: http://www.example.org/foo
85 # Expect Header = REMOVAL
87 # Set Header = Referer: http://p.p/foo
88 # Expect Header = NO CHANGE
90 # Set Header = Referer: p.p/
91 # Expect Header = REMOVAL
93 # Set Header = Referer: p
94 # Expect Header = REMOVAL
96 # Set Header = Referer: http://
97 # Expect Header = REMOVAL
99 # Set Header = Referer: https://p.p/
100 # Expect Header = REMOVAL
101 {+hide-referrer{conditional-block}}
102 TAG:^hide-referrer\{conditional-block\}$
104 # Set Header = Referer: http://www.example.org/foo
105 # Expect Header = Referer: http://p.p/
107 # Set Header = Referer: http://p.p/foo
108 # Expect Header = NO CHANGE
110 # Set Header = Referer: p.p/
111 # Expect Header = Referer: http://p.p/
113 # Set Header = Referer: p
114 # Expect Header = Referer: http://p.p/
116 # Set Header = Referer: http://
117 # Expect Header = Referer: http://p.p/
119 # Set Header = Referer: https://p.p/
120 # Expect Header = Referer: http://p.p/
121 {+hide-referrer{conditional-forge}}
122 TAG:^hide-referrer\{conditional-forge\}$
124 # Set Header = Referer: http://www.example.org/foo
125 # Expect Header = Referer: http://p.p/
126 {+hide-referrer{forge}}
127 TAG:^hide-referrer\{forge\}$
129 # Set Header = Referer: http://www.example.org/foo
130 # Expect Header = REMOVAL
131 {+hide-referrer{block}}
132 TAG:^hide-referrer\{block\}$
134 # Set Header = Referer: http://www.example.org/foo
135 # Expect Header = Referer: invalid
136 {+hide-referrer{invalid}}
137 TAG:^hide-referrer\{invalid\}$
139 # Set Header = Referer: http://www.example.org/asdf
140 # Expect Header = Referer: http://www.privoxy.org/
141 {+hide-referrer{http://www.privoxy.org/}}
142 TAG:^hide-referrer\{http://www.privoxy.org/\}$
145 #TAG:^hide-referrer\{\}$
147 #######################################################
148 # Test hide-user-agent{}.
149 #######################################################
151 # 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
152 # 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
153 {+hide-user-agent{Mozilla/5.0 (X11; U; FreeBSD alpha; en-GB; rv:1.8.1.6) Gecko/20070913 Firefox/2.0.0.6}}
154 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\}$
156 # XXX: Check the code that is tested here.
157 # Set Header = ua-blah: blah
158 # Expect Header = REMOVAL
159 {+hide-user-agent{block}}
160 TAG:^hide-user-agent{block}$
162 # Set Header = ua-blah: blah
163 # Expect Header = NO CHANGE
165 TAG:^-hide-user-agent{block}$
168 #######################################################
170 #######################################################
172 # Set Header = X-Whatever: foo
173 # Expect Header = X-Custom-Header: yes, please
175 {+add-header{X-Custom-Header: yes, please}}
176 TAG:^add-header\{X-Custom-Header: yes, please\}$
178 #######################################################
179 # Test client-header-filter{hide-tor-exit-notation}.
180 #######################################################
182 # Set Header = Referer: http://p.p.zwiebelsuppe.exit/
183 # Expect Header = Referer: http://p.p/
185 # Set Header = Referer: http://p.p.zwiebelsuppe.exit/foo/bar/baaz/
186 # Expect Header = Referer: http://p.p/foo/bar/baaz/
188 # Set Header = Referer: http://p.p/
189 # Expect Header = NO CHANGE
191 # Set Header = Referer: http://config.privoxy.org.zwiebelsuppe.exit/foo/bar/baaz.html
192 # Expect Header = Referer: http://config.privoxy.org/foo/bar/baaz.html
194 # Set Header = Host: p.p.zwiebelsuppe.exit
195 # Expect Header = Host: p.p
197 # Set Header = Host: p.p
198 # Expect Header = NO CHANGE
200 # Set Header = Referer: http://config.privoxy.org.ad356ef8e87a89e6c898b74500d58607ac691178.exit/foo/baaz.html
201 # Expect Header = Referer: http://config.privoxy.org/foo/baaz.html
203 {+client-header-filter{hide-tor-exit-notation} -hide-referer}
204 TAG:^client-header-filter\{hide-tor-exit-notation\}$
206 #######################################################
207 # Test crunch-client-header{}.
208 #######################################################
210 # Set Header = Content-Type: text/html
211 # Expect Header = REMOVAL
213 # Set Header = Content-Type: text/html; charset=4711
214 # Expect Header = REMOVAL
216 # Set Header = Content-Type: text/plain
217 # Expect Header = NO CHANGE
219 {+crunch-client-header{text/html}}
220 TAG:^crunch-client-header\{text/plain\}$
223 #######################################################
224 # Test crunch-if-none-match.
225 #######################################################
227 # Set Header = If-None-Match: 8987afd239d2093kd2309kd
228 # Expect Header = REMOVAL
230 # Set Header = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
231 # Expect Header = REMOVAL
233 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
234 # Expect Header = NO CHANGE
236 {+crunch-if-none-match -hide-if-modified-since}
237 TAG:^crunch-if-none-match$
239 #######################################################
240 # Test hide-if-modified-since
241 #######################################################
243 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
244 # Expect Header = REMOVAL
246 # Set Header = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
247 # Expect Header = NO CHANGE
249 {+hide-if-modified-since{block} -crunch-if-none-match}
250 TAG:^hide-if-modified-since\{block\}$
252 # Set Header = If-Modified-Since: Gee, this date is invalid
253 # Expect Header = REMOVAL
254 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
255 # Expect Header = SOME CHANGE
256 # Set Header = If-Modified-Since: Thu, 1 Jan 1970 00:00:00 GMT
257 # Expect Header = SOME CHANGE
259 {+hide-if-modified-since{-60} -crunch-if-none-match}
260 TAG:^hide-if-modified-since\{-60\}$
262 # Set Header = If-Modified-Since: Gee, this date is invalid
263 # Expect Header = REMOVAL
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: Wed, 31 Dec 1969 23:59:59 GMT
267 # Expect Header = SOME CHANGE
269 {+hide-if-modified-since{+60} -crunch-if-none-match}
270 TAG:^hide-if-modified-since\{\+60\}$
272 # Set Header = If-Modified-Since: Gee, this date is invalid
273 # Expect Header = REMOVAL
274 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
275 # Expect Header = SOME CHANGE
277 {+hide-if-modified-since{60} -crunch-if-none-match}
278 TAG:^hide-if-modified-since\{60\}$
280 # Set Header = If-Modified-Since: Gee, this date is invalid
281 # Expect Header = REMOVAL
282 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
283 # Expect Header = NO CHANGE
285 {+hide-if-modified-since{+0} -crunch-if-none-match}
286 TAG:^hide-if-modified-since\{\+0\}$
288 # Set Header = If-Modified-Since: Gee, this date is invalid
289 # Expect Header = REMOVAL
290 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
291 # Expect Header = NO CHANGE
293 {+hide-if-modified-since{-0} -crunch-if-none-match}
294 TAG:^hide-if-modified-since\{-0\}$
296 # Set Header = If-Modified-Since: Gee, this date is invalid
297 # Expect Header = REMOVAL
298 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
299 # Expect Header = NO CHANGE
301 {+hide-if-modified-since{0} -crunch-if-none-match}
302 TAG:^hide-if-modified-since\{0\}$
304 # Set Header = If-Modified-Since: Gee, this date is invalid
305 # Expect Header = REMOVAL
306 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
307 # Expect Header = NO CHANGE
309 {+hide-if-modified-since{NaN} -crunch-if-none-match}
310 TAG:^hide-if-modified-since\{NaN\}$
313 #######################################################
314 # Test crunch-outgoing-cookies
315 #######################################################
317 # Set Header = If-Modified-Since: Gee, this date is invalid
318 # Expect Header = NO CHANGE
320 # Set Header = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
321 # Expect Header = REMOVAL
323 +crunch-outgoing-cookies \
324 -crunch-incoming-cookies \
325 -session-cookies-only \
326 -hide-if-modified-since \
328 TAG:^crunch-outgoing-cookies$
330 #######################################################
331 # Test session-cookies-only
333 # XXX: pretty useless as session-cookies-only doesn't
334 # affect client headers.
335 #######################################################
337 # Set Header = Cookie: NSC_gffe-iuuq-mc-wtfswfs=8efb330d3660;expires=Thu, 04-Oct-07 19:11:34 GMT;path=/
338 # Expect Header = NO CHANGE
340 # Set Header = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
341 # Expect Header = NO CHANGE
343 -crunch-outgoing-cookies \
344 -crunch-incoming-cookies \
345 +session-cookies-only \
346 -hide-if-modified-since \
348 TAG:^session-cookies-only$
350 #######################################################
351 # Test change-x-forwarded-for
352 #######################################################
354 # Set Header = X-Forwarded-For: 10.0.0.1
355 # Expect Header = NO CHANGE
357 -change-x-forwarded-for \
359 TAG:^-change-x-forwarded-for$
361 # Set Header = X-Forwarded-For: 10.0.0.1
362 # Expect Header = REMOVAL
364 +change-x-forwarded-for{block} \
366 TAG:^change-x-forwarded-for\{block\}$
368 # Set Header = X-Forwarded-For: 10.0.0.1
369 # Expect Header = SOME CHANGE
371 +change-x-forwarded-for{add} \
373 TAG:^change-x-forwarded-for\{add\}$
375 #######################################################
376 # Test hide-from-header
377 #######################################################
379 # Set Header = From: schneewitchen@example.org
380 # Expect Header = REMOVAL
382 +hide-from-header{block}\
384 TAG:^hide-from-header\{block\}$
386 # Set Header = From: schneewitchen@example.org
387 # Expect Header = From: siebenzwerge@example.org
389 +hide-from-header{siebenzwerge@example.org}\
391 TAG:^hide-from-header\{siebenzwerge@example.org\}$
393 #######################################################
394 # Test prevent-compression
395 #######################################################
397 # Set Header = Accept-Encoding: gzip, deflate
398 # Expect Header = REMOVAL
400 # Set Header = Accept-Encoding: gzip
401 # Expect Header = REMOVAL
403 # Set Header = Accept-Encoding: deflate
404 # Expect Header = REMOVAL
406 +prevent-compression\
408 TAG:^prevent-compression$
410 #######################################################
411 # Test content filters which could cause problems with
413 #######################################################
415 # Set Header = Range: bytes=1234-5678
416 # Expect Header = REMOVAL
417 # Set Header = If-Range: bytes=1234-5678
418 # Expect Header = REMOVAL
419 # Set Header = Request-Range: bytes=1234-5678
420 # Expect Header = REMOVAL
422 +deanimate-gifs{last} \
425 TAG:^deanimate-gifs\{last\}$
427 # Set Header = Range: bytes=1234-5678
428 # Expect Header = REMOVAL
429 # Set Header = If-Range: bytes=1234-5678
430 # Expect Header = REMOVAL
431 # Set Header = Request-Range: bytes=1234-5678
432 # Expect Header = REMOVAL
435 +filter{banners-by-size} \
437 TAG:^filter\{banners-by-size\}$
439 # Set Header = Range: bytes=1234-5678
440 # Expect Header = NO CHANGE
441 # Set Header = If-Range: bytes=1234-5678
442 # Expect Header = NO CHANGE
443 # Set Header = Request-Range: bytes=1234-5678
444 # Expect Header = NO CHANGE
449 TAG:^no-content-filter$
451 # Set Header = Connection: keep-alive
452 # Expect Header = NO CHANGE
454 # Set Header = Connection:
455 # Expect Header = Connection: keep-alive
458 TAG:^Connection: keep-alive$
460 # Set Header = Connection: keep-alive
461 # Expect Header = Connection: close
463 # Set Header = Connection:
464 # Expect Header = Connection: close
467 TAG:^Connection: close$
469 # Set Header = Connection: close
470 # Expect Header = NO CHANGE
473 TAG:^connection-sharing disabled$
475 # Set Header = Connection: close
476 # Expect Header = Connection: keep-alive
478 # Set Header = Connection: keep-alive
479 # Expect Header = NO CHANGE
482 TAG:^connection-sharing enabled$
484 # XXX: Removing a header by not specifying a value is
485 # an inherited curl feature and could be viewed as a
486 # bug as far as Privoxy-Regression-Test is concerned.
489 # Expect Header = Host: p.p
493 # Set Header = Host: whatever.example.org
494 # Expect Header = NO CHANGE
496 TAG:^Host header other than the target host$
498 # Set Header = Keep-Alive: 20
499 # Expect Header = NO CHANGE
502 TAG:^Pass Keep-Alive header$
504 # Set Header = Keep-Alive: 20
505 # Expect Header = REMOVAL
508 TAG:^Keep-Alive header removal$
510 # XXX: check the RFC to use a real value
511 # Set Header = proxy-connection: keep-alive
512 # Expect Header = REMOVAL
514 TAG:^Proxy-Connection removal$
516 # Set Header = Proxy-Connection: keep-alive
517 # Expect Header = REMOVAL
519 TAG:^Proxy-Connection removal$
521 # These are somewhat redundant when testing with
522 # GET requests, but I want to remember then when
523 # TRACE requests are supported.
525 # Set Header = Max-Forwards: 0
526 # Expect Header = NO CHANGE
527 # Set Header = Max-Forwards: 1
528 # Expect Header = NO CHANGE
529 # Set Header = Max-Forwards: -1
530 # Expect Header = NO CHANGE
531 # Set Header = Max-Forwards: 3
532 # Expect Header = NO CHANGE
534 TAG:^Max-Forwards header without TRACE method$
536 ################################################################
538 # Fairly dumb tests for Privoxy CGI pages.
540 # These are mainly useful for checking for memory leaks
541 # with Valgrind or whether or not the user manual is installed
542 # correctly and are unlikely to actually detect any
544 # Note that if "Expect Status Code" is missing, 200 is implied.
546 ################################################################
548 # Fetch Test = http://p.p/
549 # Will fail if compiled with FEATURE_GRACEFUL_TERMINATION
550 # Fetch Test = http://p.p/die
551 # Expect Status Code = 404
552 # Fetch Test = http://p.p/show-status
553 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=0
554 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=0
555 # XXX: for the invalid ones we probably shouldn't return status code 200.
556 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=100
557 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=NaN
558 # Fetch Test = http://config.privoxy.org/show-status?file=actions
559 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=100
560 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=NaN
561 # Fetch Test = http://config.privoxy.org/show-status?file=filter
562 # Fetch Test = http://config.privoxy.org/show-status?file=invalid
563 # Fetch Test = http://config.privoxy.org/show-status?file=trust
564 # Fetch Test = http://p.p/show-version
565 # Fetch Test = http://p.p/show-request
566 # Fetch Test = http://p.p/show-url-info
567 # Fetch Test = http://p.p/show-url-info?url=www.privoxy.org%2F
568 # Fetch Test = http://p.p/show-url-info?url=http:%2F%2Fwww.privoxy.org%2F
569 # Fetch Test = http://p.p/show-url-info?url=HTTp:%2F%2Fwww.privoxy.org%2F
570 # Fetch Test = http://p.p/show-url-info?url=https:%2F%2Fwww.privoxy.org%2F
571 # Fetch Test = http://p.p/show-url-info?url=HtTps:%2F%2Fwww.privoxy.org%2F
572 # Fetch Test = http://p.p/show-url-info?url=ftp:%2F%2Fwww.privoxy.org%2F
573 # Fetch Test = http://p.p/show-url-info?url=FTp:%2F%2Fwww.privoxy.org%2F
574 # Fetch Test = http://p.p/show-url-info?url=
575 # Fetch Test = http://p.p/show-url-info?url=%2F
576 # Fetch Test = http://p.p/toggle
577 # Fetch Test = http://p.p/edit-actions
578 # Fetch Test = http://p.p/eaa
579 # Fetch Test = http://p.p/eau
580 # Fetch Test = http://p.p/ear
581 # Fetch Test = http://p.p/eal
582 # Fetch Test = http://p.p/eafu
583 # Fetch Test = http://p.p/eas
584 # Fetch Test = http://p.p/easa
585 # Fetch Test = http://p.p/easr
586 # Fetch Test = http://p.p/eass
587 # Fetch Test = http://p.p/edit-actions-for-url
588 # Fetch Test = http://p.p/edit-actions-list
589 # Fetch Test = http://p.p/edit-actions-submit
590 # Fetch Test = http://p.p/edit-actions-url
591 # Fetch Test = http://p.p/edit-actions-url-form
592 # Fetch Test = http://p.p/edit-actions-add-url
593 # Fetch Test = http://p.p/edit-actions-add-url-form
594 # Fetch Test = http://p.p/edit-actions-remove-url
595 # Fetch Test = http://p.p/edit-actions-remove-url-form
596 # Fetch Test = http://p.p/edit-actions-section-add
597 # Fetch Test = http://p.p/edit-actions-section-remove
598 # Fetch Test = http://p.p/edit-actions-section-swap
599 # Fetch Test = http://p.p/error-favicon.ico
600 # Fetch Test = http://p.p/favicon.ico
601 # Fetch Test = http://p.p/robots.txt
602 # Fetch Test = http://p.p/send-banner
603 # Fetch Test = http://p.p/send-stylesheet
604 # Fetch Test = http://p.p/t
605 # Fetch Test = http://p.p/url-info-osd.xml
607 # Trusted CGI Request = http://p.p/edit-actions
608 # Expect Status Code = 302
609 # Level = 12 # Depends on the CGI editor being enabled
610 # Fetch Test = http://p.p/does-not-exist
611 # Expect Status Code = 404
612 # Trusted CGI Request = http://p.p/eaa
613 # Trusted CGI Request = http://p.p/eau
614 # Trusted CGI Request = http://p.p/ear
615 # Trusted CGI Request = http://p.p/eal
616 # Trusted CGI Request = http://p.p/eafu
617 # Trusted CGI Request = http://p.p/eas
618 # Trusted CGI Request = http://p.p/easa
619 # Trusted CGI Request = http://p.p/easr
620 # Trusted CGI Request = http://p.p/eass
621 # Trusted CGI Request = http://p.p/edit-actions-for-url
622 # Trusted CGI Request = http://p.p/edit-actions-list
623 # Trusted CGI Request = http://p.p/edit-actions-submit
624 # Trusted CGI Request = http://p.p/edit-actions-url
625 # Trusted CGI Request = http://p.p/edit-actions-url-form
626 # Trusted CGI Request = http://p.p/edit-actions-add-url
627 # Trusted CGI Request = http://p.p/edit-actions-add-url-form
628 # Trusted CGI Request = http://p.p/edit-actions-remove-url
629 # Trusted CGI Request = http://p.p/edit-actions-remove-url-form
630 # Trusted CGI Request = http://p.p/edit-actions-section-add
631 # Trusted CGI Request = http://p.p/edit-actions-section-remove
632 # Trusted CGI Request = http://p.p/edit-actions-section-swap
633 # Trusted CGI Request = http://p.p/send-stylesheet
635 # The following tests depend on Privoxy being configured to deliver the user manual
637 # Fetch Test = http://p.p/user-manual
638 # Expect Status Code = 302
640 # Fetch Test = http://p.p/user-manual/
642 # Fetch Test = http://p.p/user-manual/actions-file.html
644 # Fetch Test = http://p.p/user-manual/appendix.html
646 # Fetch Test = http://p.p/user-manual/config.html
648 # Fetch Test = http://p.p/user-manual/configuration.html
650 # Fetch Test = http://p.p/user-manual/contact.html
652 # Fetch Test = http://p.p/user-manual/copyright.html
654 # Fetch Test = http://p.p/user-manual/files-in-use.jpg
656 # Fetch Test = http://p.p/user-manual/filter-file.html
658 # Fetch Test = http://p.p/user-manual/index.html
660 # Fetch Test = http://p.p/user-manual/installation.html
662 # Fetch Test = http://p.p/user-manual/introduction.html
664 # Fetch Test = http://p.p/user-manual/p_doc.css
666 # Fetch Test = http://p.p/user-manual/proxy2.jpg
668 # Fetch Test = http://p.p/user-manual/proxy_setup.jpg
670 # Fetch Test = http://p.p/user-manual/quickstart.html
672 # Fetch Test = http://p.p/user-manual/seealso.html
674 # Fetch Test = http://p.p/user-manual/startup.html
676 # Fetch Test = http://p.p/user-manual/templates.html
678 # Fetch Test = http://p.p/user-manual/upgradersnote.html
680 # Fetch Test = http://p.p/user-manual/whatsnew.html
684 # Method Test = OPTIONS
691 # Method Test = DELETE
692 # Method Test = OPTIONS
693 # Method Test = TRACE
694 # Method Test = CONNECT
695 # Method Test = PROPFIND
696 # Method Test = PROPPATCH
699 # Method Test = MKCOL
701 # Method Test = UNLOCK
702 # Method Test = BCOPY
703 # Method Test = BMOVE
704 # Method Test = BDELETE
705 # Method Test = BPROPFIND
706 # Method Test = BPROPPATCH
707 # Method Test = SUBSCRIBE
708 # Method Test = UNSUBSCRIBE
709 # Method Test = NOTIFY
711 # Method Test = VERSION-CONTROL
712 # Method Test = REPORT
713 # Method Test = CHECKOUT
714 # Method Test = CHECKIN
715 # Method Test = UNCHECKOUT
716 # Method Test = MKWORKSPACE
717 # Method Test = UPDATE
718 # Method Test = LABEL
719 # Method Test = MERGE
720 # Method Test = BASELINE-CONTROL
721 # Method Test = MKACTIVITY
722 # Method Test = PRIVOXY-REGRESSION-TEST-IN-THE-HOUSE
723 # Expect Status Code = 400
725 {+block{Forbidden Port. You are not supposed to see this.}}
726 config.privoxy.org:1-/
730 config.privoxy.org:3,79-81/
733 # 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
734 # Expect Status Code = 503
735 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
736 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/
738 # Fetch Test = http://oh-dear-this-hostname-is-short-enough-but-there-is-no-socks-server-listening.example
739 # Expect Status Code = 503
740 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
741 oh-dear-this-hostname-is-short-enough-but-there-is-no-socks-server-listening.example
743 # This one currently triggers the same error condition as the
744 # test above (socks5 server unreachable), but once Privoxy
745 # starts to properly reject invalid ports it should become useful.
747 # Fetch Test = http://invalid-forward5-gateway-port.example
748 # Expect Status Code = 503
749 {+forward-override{forward-socks5 127.0.0.1:-1 127.0.0.1:12345}}
750 invalid-forward5-gateway-port.example
752 # Fetch Test = http://forward5-null-gateway-host.example
753 # Expect Status Code = 503
754 {+forward-override{forward-socks5 :12345 127.0.0.1:12345}}
755 forward5-null-gateway-host.example
757 # Fetch Test = http://www.forbidden-connect.example:444/
759 # Expect Status Code = 403
760 {+limit-connect{443}}
761 www.forbidden-connect.example/
763 # Fetch Test = http://www.blocked-request.example/blocked-request
764 # Expect Status Code = 403
765 {+block{This request failed to make it to the target destination which means the test succeeded.}}
766 www.blocked-request.example/blocked-request
768 # Fetch Test = http://www.blocked-request.example/blocked-request-with-no-reason-specified
769 # Expect Status Code = 403
771 www.blocked-request.example/blocked-request-with-no-reason-specified
773 # Some domain pattern tests
775 {+block{domain pattern test}}
776 # Blocked URL = http://domain-pattern-test.example/
777 # Blocked URL = http://domain-pattern-test.example.org/
778 domain-pattern-test.example.
780 {+block{Hostname patterns without trailing dots cover hostnames with trailing dots as well.}}
781 # Blocked URL = http://trailing-dot.example.org./
782 # Blocked URL = http://trailing-dot.example.org./foo
783 trailing-dot.example.org
785 # Just in case there is no white-space fuzzer in the house ...
787 # Set Header = X-LWS-Test: no superfluous white space here
788 # Expect Header = NO CHANGE
789 # Set Header = X-LWS-Test: superfluous white space in the house
790 # Expect Header = X-LWS-Test: superfluous white space in the house
791 # Set Header = X-LWS-Test : superfluous white space in the house
792 # Expect Header = X-LWS-Test: superfluous white space in the house
793 # Set Header = X-LWS-Test: :superfluous white space in the house
794 # Expect Header = X-LWS-Test: :superfluous white space in the house
795 # Set Header = X-LWS-Test: :no superfluous white space here
796 # Expect Header = NO CHANGE
797 # Set Header = X-LWS-Test: superfluous white tabs in the house
798 # Expect Header = X-LWS-Test: superfluous white tabs in the house
799 # Set Header = X-LWS-Test : superfluous white tabs in the house
800 # Expect Header = X-LWS-Test: superfluous white tabs in the house
801 # Set Header = X-LWS-Test: "leave quoted lws alone"
802 # Expect Header = X-LWS-Test: "leave quoted lws alone"
803 # Set Header = X-LWS-Test: "leave quoted lws alone" thxbye
804 # Expect Header = X-LWS-Test: "leave quoted lws alone" thxbye
805 # Set Header = X-LWS-Test: " Do I Look like quoted text? Me thinks not.
806 # Expect Header = X-LWS-Test: " Do I Look like quoted text? Me thinks not.
807 # Set Header = X-LWS-Test: "This is quoted" this is not "but this is again"
808 # Expect Header = X-LWS-Test: "This is quoted" this is not "but this is again"
809 # Set Header = X-LWS-Test: "This is quoted" this is not "this is " but " this again is not
810 # Expect Header = X-LWS-Test: "This is quoted" this is not "this is " but " this again is not