1 #############################################################################
2 # $Id: regression-tests.action,v 1.38 2011/10/30 16:21:19 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-2011 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 #############################################################################
29 # While the syntax used is understood by Privoxy 3.0.14 and later,
30 # some of the +fast-redirects{} tests require at least 3.0.18 to work.
32 for-privoxy-version=3.0.18
34 # Some dependencies Privoxy-Regression-Test should know about:
36 # Level 9 needs = config line user-manual\s+(\.?\.?/|[A-Za-z]:)
37 # Level 12 needs = config line enable-edit-actions\s+1
38 # Level 13 needs = feature status FEATURE_CONNECTION_KEEP_ALIVE Yes
39 # Level 13 needs = config line keep-alive-timeout\s+[1-9]+
40 # Level 14 needs = feature status FEATURE_CONNECTION_KEEP_ALIVE No
41 # Level 15 needs = config line connection-sharing\s+0
42 # Level 16 needs = feature status FEATURE_CONNECTION_KEEP_ALIVE Yes
43 # Level 16 needs = config line connection-sharing\s+1
44 # Level 17 needs = feature status FEATURE_PTHREAD Yes
45 # Level 18 needs = feature status FEATURE_GRACEFUL_TERMINATION No
46 # Level 19 needs = feature status FEATURE_GRACEFUL_TERMINATION Yes
48 #######################################################
49 # Enable taggers to activate the tests on demand
50 # and suppress hiding the User-Agent for
51 # Privoxy-Regression-Test to save log space.
52 #######################################################
54 +client-header-tagger{user-agent} \
55 +client-header-tagger{privoxy-control} \
56 +client-header-filter{privoxy-control} \
63 TAG:^User-Agent: Privoxy-Regression-Test
65 #######################################################
66 # Test accept-language{}.
67 #######################################################
69 # Set Header = Accept-Language: de-de
70 # Expect Header = Accept-Language: en-gb
71 {+hide-accept-language{en-gb}}
72 TAG:^hide-accept-language\{en-gb\}$
74 # Set Header = Accept-Language: de-de
75 # Expect Header = REMOVAL
76 {+hide-accept-language{block}}
77 TAG:^hide-accept-language\{block\}$
79 #######################################################
80 # Sections for hide-referrer{} to test:
82 # 1) conditional-block
83 # 2) conditional-forge
86 # 5) a parameter that looks like a valid fake referrer
87 # 6) a parameter that looks like an invalid fake referrer
88 #######################################################
90 # Set Header = Referer: http://www.example.org/foo
91 # Expect Header = REMOVAL
93 # Set Header = Referer: http://p.p/foo
94 # Expect Header = NO CHANGE
96 # Set Header = Referer: p.p/
97 # Expect Header = REMOVAL
99 # Set Header = Referer: p
100 # Expect Header = REMOVAL
102 # Set Header = Referer: http://
103 # Expect Header = REMOVAL
105 # Set Header = Referer: https://p.p/
106 # Expect Header = REMOVAL
107 {+hide-referrer{conditional-block}}
108 TAG:^hide-referrer\{conditional-block\}$
110 # Set Header = Referer: http://www.example.org/foo
111 # Expect Header = Referer: http://p.p/
113 # Set Header = Referer: http://p.p/foo
114 # Expect Header = NO CHANGE
116 # Set Header = Referer: p.p/
117 # Expect Header = Referer: http://p.p/
119 # Set Header = Referer: p
120 # Expect Header = Referer: http://p.p/
122 # Set Header = Referer: http://
123 # Expect Header = Referer: http://p.p/
125 # Set Header = Referer: https://p.p/
126 # Expect Header = Referer: http://p.p/
127 {+hide-referrer{conditional-forge}}
128 TAG:^hide-referrer\{conditional-forge\}$
130 # Set Header = Referer: http://www.example.org/foo
131 # Expect Header = Referer: http://p.p/
132 {+hide-referrer{forge}}
133 TAG:^hide-referrer\{forge\}$
135 # Set Header = Referer: http://www.example.org/foo
136 # Expect Header = REMOVAL
137 {+hide-referrer{block}}
138 TAG:^hide-referrer\{block\}$
140 # Set Header = Referer: http://www.example.org/foo
141 # Expect Header = Referer: invalid
142 {+hide-referrer{invalid}}
143 TAG:^hide-referrer\{invalid\}$
145 # Set Header = Referer: http://www.example.org/asdf
146 # Expect Header = Referer: http://www.privoxy.org/
147 {+hide-referrer{http://www.privoxy.org/}}
148 TAG:^hide-referrer\{http://www.privoxy.org/\}$
151 #TAG:^hide-referrer\{\}$
153 #######################################################
154 # Test hide-user-agent{}.
155 #######################################################
157 # 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
158 # 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
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 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\}$
162 # XXX: Check the code that is tested here.
163 # Set Header = ua-blah: blah
164 # Expect Header = REMOVAL
165 {+hide-user-agent{block}}
166 TAG:^hide-user-agent{block}$
168 # Set Header = ua-blah: blah
169 # Expect Header = NO CHANGE
171 TAG:^-hide-user-agent{block}$
174 #######################################################
176 #######################################################
178 # Set Header = X-Whatever: foo
179 # Expect Header = X-Custom-Header: yes, please
181 {+add-header{X-Custom-Header: yes, please}}
182 TAG:^add-header\{X-Custom-Header: yes, please\}$
184 #######################################################
185 # Test client-header-filter{hide-tor-exit-notation}.
186 #######################################################
188 # Set Header = Referer: http://p.p.zwiebelsuppe.exit/
189 # Expect Header = Referer: http://p.p/
191 # Set Header = Referer: http://p.p.zwiebelsuppe.exit/foo/bar/baaz/
192 # Expect Header = Referer: http://p.p/foo/bar/baaz/
194 # Set Header = Referer: http://p.p/
195 # Expect Header = NO CHANGE
197 # Set Header = Referer: http://config.privoxy.org.zwiebelsuppe.exit/foo/bar/baaz.html
198 # Expect Header = Referer: http://config.privoxy.org/foo/bar/baaz.html
200 # Set Header = Host: p.p.zwiebelsuppe.exit
201 # Expect Header = Host: p.p
203 # Set Header = Host: p.p
204 # Expect Header = NO CHANGE
206 # Set Header = Referer: http://config.privoxy.org.ad356ef8e87a89e6c898b74500d58607ac691178.exit/foo/baaz.html
207 # Expect Header = Referer: http://config.privoxy.org/foo/baaz.html
209 {+client-header-filter{hide-tor-exit-notation} -hide-referer}
210 TAG:^client-header-filter\{hide-tor-exit-notation\}$
212 #######################################################
213 # Test crunch-client-header{}.
214 #######################################################
216 # Set Header = Content-Type: text/html
217 # Expect Header = REMOVAL
219 # Set Header = Content-Type: text/html; charset=4711
220 # Expect Header = REMOVAL
222 # Set Header = Content-Type: text/plain
223 # Expect Header = NO CHANGE
225 {+crunch-client-header{text/html}}
226 TAG:^crunch-client-header\{text/plain\}$
229 #######################################################
230 # Test crunch-if-none-match.
231 #######################################################
233 # Set Header = If-None-Match: 8987afd239d2093kd2309kd
234 # Expect Header = REMOVAL
236 # Set Header = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
237 # Expect Header = REMOVAL
239 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
240 # Expect Header = NO CHANGE
242 {+crunch-if-none-match -hide-if-modified-since}
243 TAG:^crunch-if-none-match$
245 #######################################################
246 # Test hide-if-modified-since
247 #######################################################
249 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
250 # Expect Header = REMOVAL
252 # Set Header = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
253 # Expect Header = NO CHANGE
255 {+hide-if-modified-since{block} -crunch-if-none-match}
256 TAG:^hide-if-modified-since\{block\}$
258 # Set Header = If-Modified-Since: Gee, this date is invalid
259 # Expect Header = REMOVAL
260 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
261 # Expect Header = SOME CHANGE
262 # Set Header = If-Modified-Since: Thu, 1 Jan 1970 00:00:00 GMT
263 # Expect Header = SOME CHANGE
265 # Set Header = If-Modified-Since: Thu, 1 Jan 123456789 00:00:00 GMT
266 # Expect Header = REMOVAL
267 # Set Header = If-Modified-Since: Mon, 1 Jan 2525 00:00:00 GMT
268 # Expect Header = SOME CHANGE
270 # Set Header = If-Modified-Since: Thu, 1 Jan 1970 02:00:00 GMT
271 # Expect Header = SOME CHANGE
273 {+hide-if-modified-since{-60} -crunch-if-none-match}
274 TAG:^hide-if-modified-since\{-60\}$
276 # Set Header = If-Modified-Since: Gee, this date is invalid
277 # Expect Header = REMOVAL
278 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
279 # Expect Header = SOME CHANGE
280 # Set Header = If-Modified-Since: Wed, 31 Dec 1969 23:59:59 GMT
281 # Expect Header = SOME CHANGE
283 {+hide-if-modified-since{+60} -crunch-if-none-match}
284 TAG:^hide-if-modified-since\{\+60\}$
286 # Set Header = If-Modified-Since: Gee, this date is invalid
287 # Expect Header = REMOVAL
288 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
289 # Expect Header = SOME CHANGE
291 {+hide-if-modified-since{60} -crunch-if-none-match}
292 TAG:^hide-if-modified-since\{60\}$
294 # Set Header = If-Modified-Since: Gee, this date is invalid
295 # Expect Header = REMOVAL
296 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
297 # Expect Header = NO CHANGE
299 {+hide-if-modified-since{+0} -crunch-if-none-match}
300 TAG:^hide-if-modified-since\{\+0\}$
302 # Set Header = If-Modified-Since: Gee, this date is invalid
303 # Expect Header = REMOVAL
304 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
305 # Expect Header = NO CHANGE
307 {+hide-if-modified-since{-0} -crunch-if-none-match}
308 TAG:^hide-if-modified-since\{-0\}$
310 # Set Header = If-Modified-Since: Gee, this date is invalid
311 # Expect Header = REMOVAL
312 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
313 # Expect Header = NO CHANGE
315 {+hide-if-modified-since{0} -crunch-if-none-match}
316 TAG:^hide-if-modified-since\{0\}$
318 # Set Header = If-Modified-Since: Gee, this date is invalid
319 # Expect Header = REMOVAL
320 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
321 # Expect Header = NO CHANGE
323 {+hide-if-modified-since{NaN} -crunch-if-none-match}
324 TAG:^hide-if-modified-since\{NaN\}$
327 #######################################################
328 # Test crunch-outgoing-cookies
329 #######################################################
331 # Set Header = If-Modified-Since: Gee, this date is invalid
332 # Expect Header = NO CHANGE
334 # Set Header = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
335 # Expect Header = REMOVAL
337 +crunch-outgoing-cookies \
338 -crunch-incoming-cookies \
339 -session-cookies-only \
340 -hide-if-modified-since \
342 TAG:^crunch-outgoing-cookies$
344 #######################################################
345 # Test session-cookies-only
347 # XXX: pretty useless as session-cookies-only doesn't
348 # affect client headers.
349 #######################################################
351 # Set Header = Cookie: NSC_gffe-iuuq-mc-wtfswfs=8efb330d3660;expires=Thu, 04-Oct-07 19:11:34 GMT;path=/
352 # Expect Header = NO CHANGE
354 # Set Header = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
355 # Expect Header = NO CHANGE
357 -crunch-outgoing-cookies \
358 -crunch-incoming-cookies \
359 +session-cookies-only \
360 -hide-if-modified-since \
362 TAG:^session-cookies-only$
364 #######################################################
365 # Test change-x-forwarded-for
366 #######################################################
368 # Set Header = X-Forwarded-For: 10.0.0.1
369 # Expect Header = NO CHANGE
371 -change-x-forwarded-for \
373 TAG:^-change-x-forwarded-for$
375 # Set Header = X-Forwarded-For: 10.0.0.1
376 # Expect Header = REMOVAL
378 +change-x-forwarded-for{block} \
380 TAG:^change-x-forwarded-for\{block\}$
382 # Set Header = X-Forwarded-For: 10.0.0.1
383 # Expect Header = SOME CHANGE
385 +change-x-forwarded-for{add} \
387 TAG:^change-x-forwarded-for\{add\}$
389 #######################################################
390 # Test hide-from-header
391 #######################################################
393 # Set Header = From: schneewitchen@example.org
394 # Expect Header = REMOVAL
396 +hide-from-header{block}\
398 TAG:^hide-from-header\{block\}$
400 # Set Header = From: schneewitchen@example.org
401 # Expect Header = From: siebenzwerge@example.org
403 +hide-from-header{siebenzwerge@example.org}\
405 TAG:^hide-from-header\{siebenzwerge@example.org\}$
407 #######################################################
408 # Test prevent-compression
409 #######################################################
411 # Set Header = Accept-Encoding: gzip, deflate
412 # Expect Header = REMOVAL
414 # Set Header = Accept-Encoding: gzip
415 # Expect Header = REMOVAL
417 # Set Header = Accept-Encoding: deflate
418 # Expect Header = REMOVAL
420 +prevent-compression\
422 TAG:^prevent-compression$
424 #######################################################
425 # Test content filters which could cause problems with
427 #######################################################
429 # Set Header = Range: bytes=1234-5678
430 # Expect Header = REMOVAL
431 # Set Header = If-Range: bytes=1234-5678
432 # Expect Header = REMOVAL
433 # Set Header = Request-Range: bytes=1234-5678
434 # Expect Header = REMOVAL
436 -client-header-tagger{range-requests} \
437 +deanimate-gifs{last} \
440 TAG:^deanimate-gifs\{last\}$
442 # Set Header = Range: bytes=1234-5678
443 # Expect Header = REMOVAL
444 # Set Header = If-Range: bytes=1234-5678
445 # Expect Header = REMOVAL
446 # Set Header = Request-Range: bytes=1234-5678
447 # Expect Header = REMOVAL
449 -client-header-tagger{range-requests} \
451 +filter{banners-by-size} \
453 TAG:^filter\{banners-by-size\}$
455 # Set Header = Range: bytes=1234-5678
456 # Expect Header = NO CHANGE
457 # Set Header = If-Range: bytes=1234-5678
458 # Expect Header = NO CHANGE
459 # Set Header = Request-Range: bytes=1234-5678
460 # Expect Header = NO CHANGE
462 -client-header-tagger{range-requests} \
466 TAG:^no-content-filter$
468 # Set Header = Connection: keep-alive
469 # Expect Header = NO CHANGE
471 # Set Header = Connection:
472 # Expect Header = REMOVAL
475 TAG:^Connection: keep-alive$
477 # Set Header = Connection: keep-alive
478 # Expect Header = Connection: close
480 # Set Header = Connection:
481 # Expect Header = Connection: close
484 TAG:^Connection: close$
486 # Set Header = Connection: close
487 # Expect Header = NO CHANGE
490 TAG:^connection-sharing disabled$
492 # Set Header = Connection: close
493 # Expect Header = REMOVAL
495 # Set Header = Connection: keep-alive
496 # Expect Header = NO CHANGE
499 TAG:^connection-sharing enabled$
501 # XXX: Removing a header by not specifying a value is
502 # an inherited curl feature and could be viewed as a
503 # bug as far as Privoxy-Regression-Test is concerned.
506 # Expect Header = Host: p.p
510 # Set Header = Host: whatever.example.org
511 # Expect Header = NO CHANGE
513 TAG:^Host header other than the target host$
515 # Set Header = Keep-Alive: 20
516 # Expect Header = NO CHANGE
519 TAG:^Pass Keep-Alive header$
521 # Set Header = Keep-Alive: 20
522 # Expect Header = REMOVAL
525 TAG:^Keep-Alive header removal$
527 # XXX: check the RFC to use a real value
528 # Set Header = proxy-connection: keep-alive
529 # Expect Header = REMOVAL
531 TAG:^Proxy-Connection removal$
533 # Set Header = Proxy-Connection: keep-alive
534 # Expect Header = REMOVAL
536 TAG:^Proxy-Connection removal$
538 # These are somewhat redundant when testing with
539 # GET requests, but I want to remember then when
540 # TRACE requests are supported.
542 # Set Header = Max-Forwards: 0
543 # Expect Header = NO CHANGE
544 # Set Header = Max-Forwards: 1
545 # Expect Header = NO CHANGE
546 # Set Header = Max-Forwards: -1
547 # Expect Header = NO CHANGE
548 # Set Header = Max-Forwards: 3
549 # Expect Header = NO CHANGE
551 TAG:^Max-Forwards header without TRACE method$
553 ################################################################
555 # Fairly dumb tests for Privoxy CGI pages.
557 # These are mainly useful for checking for memory leaks
558 # with Valgrind or whether or not the user manual is installed
559 # correctly and are unlikely to actually detect any
561 # Note that if "Expect Status Code" is missing, 200 is implied.
563 ################################################################
565 # Fetch Test = http://p.p/
566 # Fetch Test = http://p.p/die
567 # Expect Status Code = 404
569 # Fetch Test = http://p.p/die
570 # Expect Status Code = 200
572 # Fetch Test = http://p.p/show-status
573 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=0
574 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=0
575 # XXX: for the invalid ones we probably shouldn't return status code 200.
576 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=100
577 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=NaN
578 # Fetch Test = http://config.privoxy.org/show-status?file=actions
579 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=100
580 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=NaN
581 # Fetch Test = http://config.privoxy.org/show-status?file=filter
582 # Fetch Test = http://config.privoxy.org/show-status?file=invalid
583 # Fetch Test = http://config.privoxy.org/show-status?file=trust
584 # Fetch Test = http://p.p/show-version
585 # Fetch Test = http://p.p/show-request
586 # Fetch Test = http://p.p/show-url-info
587 # Fetch Test = http://p.p/show-url-info?url=www.privoxy.org%2F
588 # Fetch Test = http://p.p/show-url-info?url=http:%2F%2Fwww.privoxy.org%2F
589 # Fetch Test = http://p.p/show-url-info?url=HTTp:%2F%2Fwww.privoxy.org%2F
590 # Fetch Test = http://p.p/show-url-info?url=https:%2F%2Fwww.privoxy.org%2F
591 # Fetch Test = http://p.p/show-url-info?url=HtTps:%2F%2Fwww.privoxy.org%2F
592 # Fetch Test = http://p.p/show-url-info?url=ftp:%2F%2Fwww.privoxy.org%2F
593 # Fetch Test = http://p.p/show-url-info?url=FTp:%2F%2Fwww.privoxy.org%2F
594 # Fetch Test = http://p.p/show-url-info?url=
595 # Fetch Test = http://p.p/show-url-info?url=%2F
596 # Fetch Test = http://p.p/toggle
597 # Fetch Test = http://p.p/edit-actions
598 # Fetch Test = http://p.p/eaa
599 # Fetch Test = http://p.p/eau
600 # Fetch Test = http://p.p/ear
601 # Fetch Test = http://p.p/eal
602 # Fetch Test = http://p.p/eafu
603 # Fetch Test = http://p.p/eas
604 # Fetch Test = http://p.p/easa
605 # Fetch Test = http://p.p/easr
606 # Fetch Test = http://p.p/eass
607 # Fetch Test = http://p.p/edit-actions-for-url
608 # Fetch Test = http://p.p/edit-actions-list
609 # Fetch Test = http://p.p/edit-actions-submit
610 # Fetch Test = http://p.p/edit-actions-url
611 # Fetch Test = http://p.p/edit-actions-url-form
612 # Fetch Test = http://p.p/edit-actions-add-url
613 # Fetch Test = http://p.p/edit-actions-add-url-form
614 # Fetch Test = http://p.p/edit-actions-remove-url
615 # Fetch Test = http://p.p/edit-actions-remove-url-form
616 # Fetch Test = http://p.p/edit-actions-section-add
617 # Fetch Test = http://p.p/edit-actions-section-remove
618 # Fetch Test = http://p.p/edit-actions-section-swap
619 # Fetch Test = http://p.p/error-favicon.ico
620 # Fetch Test = http://p.p/favicon.ico
621 # Fetch Test = http://p.p/robots.txt
622 # Fetch Test = http://p.p/send-banner
623 # Fetch Test = http://p.p/send-stylesheet
624 # Fetch Test = http://p.p/t
625 # Fetch Test = http://p.p/url-info-osd.xml
627 # Trusted CGI Request = http://p.p/edit-actions
628 # Expect Status Code = 302
629 # Level = 12 # Depends on the CGI editor being enabled
630 # Fetch Test = http://p.p/does-not-exist
631 # Expect Status Code = 404
632 # Trusted CGI Request = http://p.p/eaa
633 # Trusted CGI Request = http://p.p/eau
634 # Trusted CGI Request = http://p.p/ear
635 # Trusted CGI Request = http://p.p/eal
636 # Trusted CGI Request = http://p.p/eafu
637 # Trusted CGI Request = http://p.p/eas
638 # Trusted CGI Request = http://p.p/easa
639 # Trusted CGI Request = http://p.p/easr
640 # Trusted CGI Request = http://p.p/eass
641 # Trusted CGI Request = http://p.p/edit-actions-for-url
642 # Trusted CGI Request = http://p.p/edit-actions-list
643 # Trusted CGI Request = http://p.p/edit-actions-submit
644 # Trusted CGI Request = http://p.p/edit-actions-url
645 # Trusted CGI Request = http://p.p/edit-actions-url-form
646 # Trusted CGI Request = http://p.p/edit-actions-add-url
647 # Trusted CGI Request = http://p.p/edit-actions-add-url-form
648 # Trusted CGI Request = http://p.p/edit-actions-remove-url
649 # Trusted CGI Request = http://p.p/edit-actions-remove-url-form
650 # Trusted CGI Request = http://p.p/edit-actions-section-add
651 # Trusted CGI Request = http://p.p/edit-actions-section-remove
652 # Trusted CGI Request = http://p.p/edit-actions-section-swap
653 # Trusted CGI Request = http://p.p/send-stylesheet
655 # The following tests depend on Privoxy being configured to deliver the user manual
657 # Fetch Test = http://p.p/user-manual
658 # Expect Status Code = 302
660 # Fetch Test = http://p.p/user-manual/
662 # Fetch Test = http://p.p/user-manual/actions-file.html
664 # Fetch Test = http://p.p/user-manual/appendix.html
666 # Fetch Test = http://p.p/user-manual/config.html
668 # Fetch Test = http://p.p/user-manual/configuration.html
670 # Fetch Test = http://p.p/user-manual/contact.html
672 # Fetch Test = http://p.p/user-manual/copyright.html
674 # Fetch Test = http://p.p/user-manual/files-in-use.jpg
676 # Fetch Test = http://p.p/user-manual/filter-file.html
678 # Fetch Test = http://p.p/user-manual/index.html
680 # Fetch Test = http://p.p/user-manual/installation.html
682 # Fetch Test = http://p.p/user-manual/introduction.html
684 # Fetch Test = http://p.p/user-manual/p_doc.css
686 # Fetch Test = http://p.p/user-manual/proxy2.jpg
688 # Fetch Test = http://p.p/user-manual/proxy_setup.jpg
690 # Fetch Test = http://p.p/user-manual/quickstart.html
692 # Fetch Test = http://p.p/user-manual/seealso.html
694 # Fetch Test = http://p.p/user-manual/startup.html
696 # Fetch Test = http://p.p/user-manual/templates.html
698 # Fetch Test = http://p.p/user-manual/whatsnew.html
702 # Method Test = OPTIONS
709 # Method Test = DELETE
710 # Method Test = OPTIONS
711 # Method Test = TRACE
712 # Method Test = CONNECT
713 # Method Test = PROPFIND
714 # Method Test = PROPPATCH
717 # Method Test = MKCOL
719 # Method Test = UNLOCK
720 # Method Test = BCOPY
721 # Method Test = BMOVE
722 # Method Test = BDELETE
723 # Method Test = BPROPFIND
724 # Method Test = BPROPPATCH
725 # Method Test = SUBSCRIBE
726 # Method Test = UNSUBSCRIBE
727 # Method Test = NOTIFY
729 # Method Test = VERSION-CONTROL
730 # Method Test = REPORT
731 # Method Test = CHECKOUT
732 # Method Test = CHECKIN
733 # Method Test = UNCHECKOUT
734 # Method Test = MKWORKSPACE
735 # Method Test = UPDATE
736 # Method Test = LABEL
737 # Method Test = MERGE
738 # Method Test = BASELINE-CONTROL
739 # Method Test = MKACTIVITY
740 # Method Test = PRIVOXY-REGRESSION-TEST-IN-THE-HOUSE
741 # Expect Status Code = 400
743 {+block{Forbidden Port. You are not supposed to see this.}}
744 config.privoxy.org:1-/
748 config.privoxy.org:3,79-81/
751 # 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
752 # Expect Status Code = 503
753 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
754 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/
756 # Fetch Test = http://oh-dear-this-hostname-is-short-enough-but-there-is-no-socks5-server-listening.example
757 # Expect Status Code = 503
758 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
759 oh-dear-this-hostname-is-short-enough-but-there-is-no-socks5-server-listening.example
761 # Fetch Test = http://oh-dear-this-hostname-is-short-enough-but-there-is-no-socks4-server-listening.example
762 # Expect Status Code = 503
763 {+forward-override{forward-socks4 127.0.0.1:12345 .}}
764 oh-dear-this-hostname-is-short-enough-but-there-is-no-socks4-server-listening.example
766 # Fetch Test = http://oh-dear-this-hostname-is-short-enough-but-there-is-no-socks4a-server-listening.example
767 # Expect Status Code = 503
768 {+forward-override{forward-socks4a 127.0.0.1:12345 .}}
769 oh-dear-this-hostname-is-short-enough-but-there-is-no-socks4a-server-listening.example
771 # This one currently triggers the same error condition as the
772 # test above (socks5 server unreachable), but once Privoxy
773 # starts to properly reject invalid ports it should become useful.
775 # Fetch Test = http://invalid-forward5-gateway-port.example
776 # Expect Status Code = 503
777 {+forward-override{forward-socks5 127.0.0.1:-1 127.0.0.1:12345}}
778 invalid-forward5-gateway-port.example
780 # Fetch Test = http://forward5-null-gateway-host.example
781 # Expect Status Code = 503
782 {+forward-override{forward-socks5 :12345 127.0.0.1:12345}}
783 forward5-null-gateway-host.example
785 # Fetch Test = http://www.forbidden-connect.example:444/
787 # Expect Status Code = 403
788 {+limit-connect{443}}
789 www.forbidden-connect.example/
791 # Fetch Test = http://www.blocked-request.example/blocked-request
792 # Expect Status Code = 403
793 {+block{This request failed to make it to the target destination which means the test succeeded.}}
794 www.blocked-request.example/blocked-request
796 # Fetch Test = http://www.blocked-request.example/blocked-request-with-no-reason-specified
797 # Expect Status Code = 403
799 www.blocked-request.example/blocked-request-with-no-reason-specified
801 # Some domain pattern tests
803 {+block{domain pattern test}}
804 # Blocked URL = http://domain-pattern-test.example/
805 # Blocked URL = http://domain-pattern-test.example.org/
806 domain-pattern-test.example.
808 {+block{Hostname patterns without trailing dots cover hostnames with trailing dots as well.}}
809 # Blocked URL = http://trailing-dot.example.org./
810 # Blocked URL = http://trailing-dot.example.org./foo
811 trailing-dot.example.org
813 # Just in case there is no white-space fuzzer in the house ...
815 # Set Header = X-LWS-Test: no superfluous white space here
816 # Expect Header = NO CHANGE
817 # Set Header = X-LWS-Test: superfluous white space in the house
818 # Expect Header = X-LWS-Test: superfluous white space in the house
819 # Set Header = X-LWS-Test : superfluous white space in the house
820 # Expect Header = X-LWS-Test: superfluous white space in the house
821 # Set Header = X-LWS-Test: :superfluous white space in the house
822 # Expect Header = X-LWS-Test: :superfluous white space in the house
823 # Set Header = X-LWS-Test: :no superfluous white space here
824 # Expect Header = NO CHANGE
825 # Set Header = X-LWS-Test: superfluous white tabs in the house
826 # Expect Header = X-LWS-Test: superfluous white tabs in the house
827 # Set Header = X-LWS-Test : superfluous white tabs in the house
828 # Expect Header = X-LWS-Test: superfluous white tabs in the house
829 # Set Header = X-LWS-Test: "leave quoted lws alone"
830 # Expect Header = X-LWS-Test: "leave quoted lws alone"
831 # Set Header = X-LWS-Test: "leave quoted lws alone" thxbye
832 # Expect Header = X-LWS-Test: "leave quoted lws alone" thxbye
833 # Set Header = X-LWS-Test: " Do I Look like quoted text? Me thinks not.
834 # Expect Header = X-LWS-Test: " Do I Look like quoted text? Me thinks not.
835 # Set Header = X-LWS-Test: "This is quoted" this is not "but this is again"
836 # Expect Header = X-LWS-Test: "This is quoted" this is not "but this is again"
837 # Set Header = X-LWS-Test: "This is quoted" this is not "this is " but " this again is not
838 # Expect Header = X-LWS-Test: "This is quoted" this is not "this is " but " this again is not
842 {+fast-redirects{check-decoded-url}}
843 # Redirected URL = http://redirect.example.net/blafasel&url=http://redirected1.example.net/
844 # Redirect Destination = http://redirected1.example.net/
845 # Redirected URL = http://redirect.example.net/blafasel&url=http%3A%2F%2Fredirected2.example.net%2F¶meter=not-part-of-the-redirected-url
846 # Redirect Destination = http://redirected2.example.net/
847 # Redirected URL = http://redirect.example.net/blafasel&url=http%3A%2F%2Fredirected3.example.net%2F¶meter=not-part-of-the-redirected-url
848 # Redirect Destination = http://redirected3.example.net/
849 # Redirected URL = http://redirect.example.net/blafasel&url=http%3A%2F%2Fredirected4.example.net%2F%26parameter=part-of-the-redirected-url
850 # Redirect Destination = http://redirected4.example.net/¶meter=part-of-the-redirected-url
851 # 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
852 # Redirect Destination = http://redirected5.example.net/¶meter2=part-of-the-redirected-url2
853 # 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¶meter3=not-part-of-the-redirected-url2
854 # Redirect Destination = http://redirected6.example.net/¶meter2=part-of-the-redirected-url2
855 # Redirected URL = http://redirect.example.net/blafasel?x=http%3A%2F%2Fredirected7.example.net%2F%26parameter1=part-of-the-redirected-url1¶meter2=not-part-of-the-redirected-url1
856 # Redirect Destination = http://redirected7.example.net/¶meter1=part-of-the-redirected-url1
857 # Redirected URL = http://redirect.example.net/blafasel?x=http%3A%2F%2Fredirected8.example.net%2F%26parameter1=part-of-the-redirected-url1¶meter2=not-part-of-the-redirected-url1¶meter3=not-part-of-the-redirected-url1
858 # Redirect Destination = http://redirected8.example.net/¶meter1=part-of-the-redirected-url1
859 redirect.example.net/
861 {+fast-redirects{simple-check}}
862 # Redirected URL = http://redirect2.example.net/blafasel?x=http://redirected.example.net/¶meter1=part-of-the-redirected-url1¶meter2=part-of-the-redirected-url1
863 # Redirect Destination = http://redirected.example.net/¶meter1=part-of-the-redirected-url1¶meter2=part-of-the-redirected-url1
864 redirect2.example.net/