1 #############################################################################
2 # $Id: regression-tests.action,v 1.22 2009/02/22 15:07:58 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 14 needs = feature status FEATURE_CONNECTION_KEEP_ALIVE No
39 #######################################################
40 # Enable taggers to activate the tests on demand
41 # and suppress hiding the User-Agent for
42 # Privoxy-Regression-Test to save log space.
43 #######################################################
45 +client-header-tagger{user-agent} \
46 +client-header-tagger{privoxy-control} \
47 +client-header-filter{privoxy-control} \
54 TAG:^User-Agent: Privoxy-Regression-Test
56 #######################################################
57 # Test accept-language{}.
58 #######################################################
60 # Set Header = Accept-Language: de-de
61 # Expect Header = Accept-Language: en-gb
62 {+hide-accept-language{en-gb}}
63 TAG:^hide-accept-language\{en-gb\}$
65 # Set Header = Accept-Language: de-de
66 # Expect Header = REMOVAL
67 {+hide-accept-language{block}}
68 TAG:^hide-accept-language\{block\}$
70 #######################################################
71 # Sections for hide-referrer{} to test:
73 # 1) conditional-block
74 # 2) conditional-forge
77 # 5) a parameter that looks like a valid fake referrer
78 # 6) a parameter that looks like an invalid fake referrer
79 #######################################################
81 # Set Header = Referer: http://www.example.org/foo
82 # Expect Header = REMOVAL
84 # Set Header = Referer: http://p.p/foo
85 # Expect Header = NO CHANGE
87 # Set Header = Referer: p.p/
88 # Expect Header = REMOVAL
90 # Set Header = Referer: p
91 # Expect Header = REMOVAL
93 # Set Header = Referer: http://
94 # Expect Header = REMOVAL
96 # Set Header = Referer: https://p.p/
97 # Expect Header = REMOVAL
98 {+hide-referrer{conditional-block}}
99 TAG:^hide-referrer\{conditional-block\}$
101 # Set Header = Referer: http://www.example.org/foo
102 # Expect Header = Referer: http://p.p/
104 # Set Header = Referer: http://p.p/foo
105 # Expect Header = NO CHANGE
107 # Set Header = Referer: p.p/
108 # Expect Header = Referer: http://p.p/
110 # Set Header = Referer: p
111 # Expect Header = Referer: http://p.p/
113 # Set Header = Referer: http://
114 # Expect Header = Referer: http://p.p/
116 # Set Header = Referer: https://p.p/
117 # Expect Header = Referer: http://p.p/
118 {+hide-referrer{conditional-forge}}
119 TAG:^hide-referrer\{conditional-forge\}$
121 # Set Header = Referer: http://www.example.org/foo
122 # Expect Header = Referer: http://p.p/
123 {+hide-referrer{forge}}
124 TAG:^hide-referrer\{forge\}$
126 # Set Header = Referer: http://www.example.org/foo
127 # Expect Header = REMOVAL
128 {+hide-referrer{block}}
129 TAG:^hide-referrer\{block\}$
131 # Set Header = Referer: http://www.example.org/foo
132 # Expect Header = Referer: invalid
133 {+hide-referrer{invalid}}
134 TAG:^hide-referrer\{invalid\}$
136 # Set Header = Referer: http://www.example.org/asdf
137 # Expect Header = Referer: http://www.privoxy.org/
138 {+hide-referrer{http://www.privoxy.org/}}
139 TAG:^hide-referrer\{http://www.privoxy.org/\}$
142 #TAG:^hide-referrer\{\}$
144 #######################################################
145 # Test hide-user-agent{}.
146 #######################################################
148 # 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
149 # 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
150 {+hide-user-agent{Mozilla/5.0 (X11; U; FreeBSD alpha; en-GB; rv:1.8.1.6) Gecko/20070913 Firefox/2.0.0.6}}
151 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\}$
153 # XXX: Check the code that is tested here.
154 # Set Header = ua-blah: blah
155 # Expect Header = REMOVAL
156 {+hide-user-agent{block}}
157 TAG:^hide-user-agent{block}$
159 # Set Header = ua-blah: blah
160 # Expect Header = NO CHANGE
162 TAG:^-hide-user-agent{block}$
165 #######################################################
167 #######################################################
169 # Set Header = X-Whatever: foo
170 # Expect Header = X-Custom-Header: yes, please
172 {+add-header{X-Custom-Header: yes, please}}
173 TAG:^add-header\{X-Custom-Header: yes, please\}$
175 #######################################################
176 # Test client-header-filter{hide-tor-exit-notation}.
177 #######################################################
179 # Set Header = Referer: http://p.p.zwiebelsuppe.exit/
180 # Expect Header = Referer: http://p.p/
182 # Set Header = Referer: http://p.p.zwiebelsuppe.exit/foo/bar/baaz/
183 # Expect Header = Referer: http://p.p/foo/bar/baaz/
185 # Set Header = Referer: http://p.p/
186 # Expect Header = NO CHANGE
188 # Set Header = Referer: http://config.privoxy.org.zwiebelsuppe.exit/foo/bar/baaz.html
189 # Expect Header = Referer: http://config.privoxy.org/foo/bar/baaz.html
191 # Set Header = Host: p.p.zwiebelsuppe.exit
192 # Expect Header = Host: p.p
194 # Set Header = Host: p.p
195 # Expect Header = NO CHANGE
197 # Set Header = Referer: http://config.privoxy.org.ad356ef8e87a89e6c898b74500d58607ac691178.exit/foo/baaz.html
198 # Expect Header = Referer: http://config.privoxy.org/foo/baaz.html
200 {+client-header-filter{hide-tor-exit-notation} -hide-referer}
201 TAG:^client-header-filter\{hide-tor-exit-notation\}$
203 #######################################################
204 # Test crunch-client-header{}.
205 #######################################################
207 # Set Header = Content-Type: text/html
208 # Expect Header = REMOVAL
210 # Set Header = Content-Type: text/html; charset=4711
211 # Expect Header = REMOVAL
213 # Set Header = Content-Type: text/plain
214 # Expect Header = NO CHANGE
216 {+crunch-client-header{text/html}}
217 TAG:^crunch-client-header\{text/plain\}$
220 #######################################################
221 # Test crunch-if-none-match.
222 #######################################################
224 # Set Header = If-None-Match: 8987afd239d2093kd2309kd
225 # Expect Header = REMOVAL
227 # Set Header = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
228 # Expect Header = REMOVAL
230 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
231 # Expect Header = NO CHANGE
233 {+crunch-if-none-match -hide-if-modified-since}
234 TAG:^crunch-if-none-match$
236 #######################################################
237 # Test hide-if-modified-since
238 #######################################################
240 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
241 # Expect Header = REMOVAL
243 # Set Header = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
244 # Expect Header = NO CHANGE
246 {+hide-if-modified-since{block} -crunch-if-none-match}
247 TAG:^hide-if-modified-since\{block\}$
249 # Set Header = If-Modified-Since: Gee, this date is invalid
250 # Expect Header = REMOVAL
251 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
252 # Expect Header = SOME CHANGE
254 {+hide-if-modified-since{-60} -crunch-if-none-match}
255 TAG:^hide-if-modified-since\{-60\}$
257 # Set Header = If-Modified-Since: Gee, this date is invalid
258 # Expect Header = REMOVAL
259 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
260 # Expect Header = SOME CHANGE
262 {+hide-if-modified-since{+60} -crunch-if-none-match}
263 TAG:^hide-if-modified-since\{\+60\}$
265 # Set Header = If-Modified-Since: Gee, this date is invalid
266 # Expect Header = REMOVAL
267 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
268 # Expect Header = SOME CHANGE
270 {+hide-if-modified-since{60} -crunch-if-none-match}
271 TAG:^hide-if-modified-since\{60\}$
273 # Set Header = If-Modified-Since: Gee, this date is invalid
274 # Expect Header = REMOVAL
275 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
276 # Expect Header = NO CHANGE
278 {+hide-if-modified-since{+0} -crunch-if-none-match}
279 TAG:^hide-if-modified-since\{\+0\}$
281 # Set Header = If-Modified-Since: Gee, this date is invalid
282 # Expect Header = REMOVAL
283 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
284 # Expect Header = NO CHANGE
286 {+hide-if-modified-since{-0} -crunch-if-none-match}
287 TAG:^hide-if-modified-since\{-0\}$
289 # Set Header = If-Modified-Since: Gee, this date is invalid
290 # Expect Header = REMOVAL
291 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
292 # Expect Header = NO CHANGE
294 {+hide-if-modified-since{0} -crunch-if-none-match}
295 TAG:^hide-if-modified-since\{0\}$
297 # Set Header = If-Modified-Since: Gee, this date is invalid
298 # Expect Header = REMOVAL
299 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
300 # Expect Header = NO CHANGE
302 {+hide-if-modified-since{NaN} -crunch-if-none-match}
303 TAG:^hide-if-modified-since\{NaN\}$
306 #######################################################
307 # Test crunch-outgoing-cookies
308 #######################################################
310 # Set Header = If-Modified-Since: Gee, this date is invalid
311 # Expect Header = NO CHANGE
313 # Set Header = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
314 # Expect Header = REMOVAL
316 +crunch-outgoing-cookies \
317 -crunch-incoming-cookies \
318 -session-cookies-only \
319 -hide-if-modified-since \
321 TAG:^crunch-outgoing-cookies$
323 #######################################################
324 # Test session-cookies-only
326 # XXX: pretty useless as session-cookies-only doesn't
327 # affect client headers.
328 #######################################################
330 # Set Header = Cookie: NSC_gffe-iuuq-mc-wtfswfs=8efb330d3660;expires=Thu, 04-Oct-07 19:11:34 GMT;path=/
331 # Expect Header = NO CHANGE
333 # Set Header = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
334 # Expect Header = NO CHANGE
336 -crunch-outgoing-cookies \
337 -crunch-incoming-cookies \
338 +session-cookies-only \
339 -hide-if-modified-since \
341 TAG:^session-cookies-only$
343 #######################################################
344 # Test change-x-forwarded-for
345 #######################################################
347 # Set Header = X-Forwarded-For: 10.0.0.1
348 # Expect Header = NO CHANGE
350 -change-x-forwarded-for \
352 TAG:^-change-x-forwarded-for$
354 # Set Header = X-Forwarded-For: 10.0.0.1
355 # Expect Header = REMOVAL
357 +change-x-forwarded-for{block} \
359 TAG:^change-x-forwarded-for\{block\}$
361 # Set Header = X-Forwarded-For: 10.0.0.1
362 # Expect Header = SOME CHANGE
364 +change-x-forwarded-for{add} \
366 TAG:^change-x-forwarded-for\{add\}$
368 #######################################################
369 # Test hide-from-header
370 #######################################################
372 # Set Header = From: schneewitchen@example.org
373 # Expect Header = REMOVAL
375 +hide-from-header{block}\
377 TAG:^hide-from-header\{block\}$
379 # Set Header = From: schneewitchen@example.org
380 # Expect Header = From: siebenzwerge@example.org
382 +hide-from-header{siebenzwerge@example.org}\
384 TAG:^hide-from-header\{siebenzwerge@example.org\}$
386 #######################################################
387 # Test prevent-compression
388 #######################################################
390 # Set Header = Accept-Encoding: gzip, deflate
391 # Expect Header = REMOVAL
393 # Set Header = Accept-Encoding: gzip
394 # Expect Header = REMOVAL
396 # Set Header = Accept-Encoding: deflate
397 # Expect Header = REMOVAL
399 +prevent-compression\
401 TAG:^prevent-compression$
403 #######################################################
404 # Test content filters which could cause problems with
406 #######################################################
408 # Set Header = Range: bytes=1234-5678
409 # Expect Header = REMOVAL
410 # Set Header = If-Range: bytes=1234-5678
411 # Expect Header = REMOVAL
412 # Set Header = Request-Range: bytes=1234-5678
413 # Expect Header = REMOVAL
415 +deanimate-gifs{last} \
418 TAG:^deanimate-gifs\{last\}$
420 # Set Header = Range: bytes=1234-5678
421 # Expect Header = REMOVAL
422 # Set Header = If-Range: bytes=1234-5678
423 # Expect Header = REMOVAL
424 # Set Header = Request-Range: bytes=1234-5678
425 # Expect Header = REMOVAL
428 +filter{banners-by-size} \
430 TAG:^filter\{banners-by-size\}$
432 # Set Header = Range: bytes=1234-5678
433 # Expect Header = NO CHANGE
434 # Set Header = If-Range: bytes=1234-5678
435 # Expect Header = NO CHANGE
436 # Set Header = Request-Range: bytes=1234-5678
437 # Expect Header = NO CHANGE
442 TAG:^no-content-filter$
444 # Set Header = Connection: close
445 # Expect Header = Connection: keep-alive
447 # Set Header = Connection: keep-alive
448 # Expect Header = NO CHANGE
450 # Set Header = Connection:
451 # Expect Header = Connection: keep-alive
454 TAG:^Connection: keep-alive$
456 # Set Header = Connection: keep-alive
457 # Expect Header = Connection: close
459 # Set Header = Connection:
460 # Expect Header = Connection: close
463 TAG:^Connection: close$
465 # XXX: Removing a header by not specifying a value is
466 # an inherited curl feature and could be viewed as a
467 # bug as far as Privoxy-Regression-Test is concerned.
470 # Expect Header = Host: p.p
474 # Set Header = Host: whatever.example.org
475 # Expect Header = NO CHANGE
477 TAG:^Host header other than the target host$
479 # Set Header = Keep-Alive: 20
480 # Expect Header = NO CHANGE
483 TAG:^Pass Keep-Alive header$
485 # Set Header = Keep-Alive: 20
486 # Expect Header = REMOVAL
489 TAG:^Keep-Alive header removal$
491 # XXX: check the RFC to use a real value
492 # Set Header = proxy-connection: keep-alive
493 # Expect Header = REMOVAL
495 TAG:^Proxy-Connection removal$
497 # Set Header = Proxy-Connection: keep-alive
498 # Expect Header = REMOVAL
500 TAG:^Proxy-Connection removal$
502 # These are somewhat redundant when testing with
503 # GET requests, but I want to remember then when
504 # TRACE requests are supported.
506 # Set Header = Max-Forwards: 0
507 # Expect Header = NO CHANGE
508 # Set Header = Max-Forwards: 1
509 # Expect Header = NO CHANGE
510 # Set Header = Max-Forwards: -1
511 # Expect Header = NO CHANGE
512 # Set Header = Max-Forwards: 3
513 # Expect Header = NO CHANGE
515 TAG:^Max-Forwards header without TRACE method$
517 ################################################################
519 # Fairly dumb tests for Privoxy CGI pages.
521 # These are mainly useful for checking for memory leaks
522 # with Valgrind or whether or not the user manual is installed
523 # correctly and are unlikely to actually detect any
525 # Note that if "Expect Status Code" is missing, 200 is implied.
527 ################################################################
529 # Fetch Test = http://p.p/
530 # Will fail if compiled with FEATURE_GRACEFUL_TERMINATION
531 # Fetch Test = http://p.p/die
532 # Expect Status Code = 404
533 # Fetch Test = http://p.p/show-status
534 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=0
535 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=0
536 # XXX: for the invalid ones we probably shouldn't return status code 200.
537 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=100
538 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=NaN
539 # Fetch Test = http://config.privoxy.org/show-status?file=actions
540 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=100
541 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=NaN
542 # Fetch Test = http://config.privoxy.org/show-status?file=filter
543 # Fetch Test = http://config.privoxy.org/show-status?file=invalid
544 # Fetch Test = http://config.privoxy.org/show-status?file=trust
545 # Fetch Test = http://p.p/show-version
546 # Fetch Test = http://p.p/show-request
547 # Fetch Test = http://p.p/show-url-info
548 # Fetch Test = http://p.p/show-url-info?url=www.privoxy.org%2F
549 # Fetch Test = http://p.p/show-url-info?url=http:%2F%2Fwww.privoxy.org%2F
550 # Fetch Test = http://p.p/show-url-info?url=HTTp:%2F%2Fwww.privoxy.org%2F
551 # Fetch Test = http://p.p/show-url-info?url=https:%2F%2Fwww.privoxy.org%2F
552 # Fetch Test = http://p.p/show-url-info?url=HtTps:%2F%2Fwww.privoxy.org%2F
553 # Fetch Test = http://p.p/show-url-info?url=ftp:%2F%2Fwww.privoxy.org%2F
554 # Fetch Test = http://p.p/show-url-info?url=FTp:%2F%2Fwww.privoxy.org%2F
555 # Fetch Test = http://p.p/show-url-info?url=
556 # Fetch Test = http://p.p/show-url-info?url=%2F
557 # Fetch Test = http://p.p/toggle
558 # Fetch Test = http://p.p/edit-actions
559 # Fetch Test = http://p.p/eaa
560 # Fetch Test = http://p.p/eau
561 # Fetch Test = http://p.p/ear
562 # Fetch Test = http://p.p/eal
563 # Fetch Test = http://p.p/eafu
564 # Fetch Test = http://p.p/eas
565 # Fetch Test = http://p.p/easa
566 # Fetch Test = http://p.p/easr
567 # Fetch Test = http://p.p/eass
568 # Fetch Test = http://p.p/edit-actions-for-url
569 # Fetch Test = http://p.p/edit-actions-list
570 # Fetch Test = http://p.p/edit-actions-submit
571 # Fetch Test = http://p.p/edit-actions-url
572 # Fetch Test = http://p.p/edit-actions-url-form
573 # Fetch Test = http://p.p/edit-actions-add-url
574 # Fetch Test = http://p.p/edit-actions-add-url-form
575 # Fetch Test = http://p.p/edit-actions-remove-url
576 # Fetch Test = http://p.p/edit-actions-remove-url-form
577 # Fetch Test = http://p.p/edit-actions-section-add
578 # Fetch Test = http://p.p/edit-actions-section-remove
579 # Fetch Test = http://p.p/edit-actions-section-swap
580 # Fetch Test = http://p.p/error-favicon.ico
581 # Fetch Test = http://p.p/favicon.ico
582 # Fetch Test = http://p.p/robots.txt
583 # Fetch Test = http://p.p/send-banner
584 # Fetch Test = http://p.p/send-stylesheet
585 # Fetch Test = http://p.p/t
586 # Fetch Test = http://p.p/url-info-osd.xml
588 # Trusted CGI Request = http://p.p/edit-actions
589 # Expect Status Code = 302
590 # Level = 12 # Depends on the CGI editor being enabled
591 # Fetch Test = http://p.p/does-not-exist
592 # Expect Status Code = 404
593 # Trusted CGI Request = http://p.p/eaa
594 # Trusted CGI Request = http://p.p/eau
595 # Trusted CGI Request = http://p.p/ear
596 # Trusted CGI Request = http://p.p/eal
597 # Trusted CGI Request = http://p.p/eafu
598 # Trusted CGI Request = http://p.p/eas
599 # Trusted CGI Request = http://p.p/easa
600 # Trusted CGI Request = http://p.p/easr
601 # Trusted CGI Request = http://p.p/eass
602 # Trusted CGI Request = http://p.p/edit-actions-for-url
603 # Trusted CGI Request = http://p.p/edit-actions-list
604 # Trusted CGI Request = http://p.p/edit-actions-submit
605 # Trusted CGI Request = http://p.p/edit-actions-url
606 # Trusted CGI Request = http://p.p/edit-actions-url-form
607 # Trusted CGI Request = http://p.p/edit-actions-add-url
608 # Trusted CGI Request = http://p.p/edit-actions-add-url-form
609 # Trusted CGI Request = http://p.p/edit-actions-remove-url
610 # Trusted CGI Request = http://p.p/edit-actions-remove-url-form
611 # Trusted CGI Request = http://p.p/edit-actions-section-add
612 # Trusted CGI Request = http://p.p/edit-actions-section-remove
613 # Trusted CGI Request = http://p.p/edit-actions-section-swap
614 # Trusted CGI Request = http://p.p/send-stylesheet
616 # The following tests depend on Privoxy being configured to deliver the user manual
618 # Fetch Test = http://p.p/user-manual
619 # Expect Status Code = 302
621 # Fetch Test = http://p.p/user-manual/
623 # Fetch Test = http://p.p/user-manual/actions-file.html
625 # Fetch Test = http://p.p/user-manual/appendix.html
627 # Fetch Test = http://p.p/user-manual/config.html
629 # Fetch Test = http://p.p/user-manual/configuration.html
631 # Fetch Test = http://p.p/user-manual/contact.html
633 # Fetch Test = http://p.p/user-manual/copyright.html
635 # Fetch Test = http://p.p/user-manual/files-in-use.jpg
637 # Fetch Test = http://p.p/user-manual/filter-file.html
639 # Fetch Test = http://p.p/user-manual/index.html
641 # Fetch Test = http://p.p/user-manual/installation.html
643 # Fetch Test = http://p.p/user-manual/introduction.html
645 # Fetch Test = http://p.p/user-manual/p_doc.css
647 # Fetch Test = http://p.p/user-manual/proxy2.jpg
649 # Fetch Test = http://p.p/user-manual/proxy_setup.jpg
651 # Fetch Test = http://p.p/user-manual/quickstart.html
653 # Fetch Test = http://p.p/user-manual/seealso.html
655 # Fetch Test = http://p.p/user-manual/startup.html
657 # Fetch Test = http://p.p/user-manual/templates.html
659 # Fetch Test = http://p.p/user-manual/upgradersnote.html
661 # Fetch Test = http://p.p/user-manual/whatsnew.html
665 # Method Test = OPTIONS
672 # Method Test = DELETE
673 # Method Test = OPTIONS
674 # Method Test = TRACE
675 # Method Test = CONNECT
676 # Method Test = PROPFIND
677 # Method Test = PROPPATCH
680 # Method Test = MKCOL
682 # Method Test = UNLOCK
683 # Method Test = BCOPY
684 # Method Test = BMOVE
685 # Method Test = BDELETE
686 # Method Test = BPROPFIND
687 # Method Test = BPROPPATCH
688 # Method Test = SUBSCRIBE
689 # Method Test = UNSUBSCRIBE
690 # Method Test = NOTIFY
692 # Method Test = VERSION-CONTROL
693 # Method Test = REPORT
694 # Method Test = CHECKOUT
695 # Method Test = CHECKIN
696 # Method Test = UNCHECKOUT
697 # Method Test = MKWORKSPACE
698 # Method Test = UPDATE
699 # Method Test = LABEL
700 # Method Test = MERGE
701 # Method Test = BASELINE-CONTROL
702 # Method Test = MKACTIVITY
703 # Method Test = PRIVOXY-REGRESSION-TEST-IN-THE-HOUSE
704 # Expect Status Code = 400
706 {+block{Forbidden Port. You are not supposed to see this.}}
707 config.privoxy.org:1-/
711 config.privoxy.org:3,79-81/
714 # 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
715 # Expect Status Code = 503
716 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
717 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/
719 # Fetch Test = http://oh-dear-this-hostname-is-short-enough-but-there-is-no-socks-server-listening.example
720 # Expect Status Code = 503
721 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
722 oh-dear-this-hostname-is-short-enough-but-there-is-no-socks-server-listening.example
724 # This one currently triggers the same error condition as the
725 # test above (socks5 server unreachable), but once Privoxy
726 # starts to properly reject invalid ports it should become useful.
728 # Fetch Test = http://invalid-forward5-gateway-port.example
729 # Expect Status Code = 503
730 {+forward-override{forward-socks5 127.0.0.1:-1 127.0.0.1:12345}}
731 invalid-forward5-gateway-port.example
733 # Fetch Test = http://forward5-null-gateway-host.example
734 # Expect Status Code = 503
735 {+forward-override{forward-socks5 :12345 127.0.0.1:12345}}
736 forward5-null-gateway-host.example
738 # Fetch Test = http://www.forbidden-connect.example:444/
740 # Expect Status Code = 403
741 {+limit-connect{443}}
742 www.forbidden-connect.example/
744 # Fetch Test = http://www.blocked-request.example/blocked-request
745 # Expect Status Code = 403
746 {+block{This request failed to make it to the target destination which means the test succeeded.}}
747 www.blocked-request.example/blocked-request
749 # Fetch Test = http://www.blocked-request.example/blocked-request-with-no-reason-specified
750 # Expect Status Code = 403
752 www.blocked-request.example/blocked-request-with-no-reason-specified
754 # Some domain pattern tests
756 {+block{domain pattern test}}
757 # Blocked URL = http://domain-pattern-test.example/
758 # Blocked URL = http://domain-pattern-test.example.org/
759 domain-pattern-test.example.
761 # Just in case there is no white-space fuzzer in the house ...
763 # Set Header = X-LWS-Test: no superfluous white space here
764 # Expect Header = NO CHANGE
765 # Set Header = X-LWS-Test: superfluous white space in the house
766 # Expect Header = X-LWS-Test: superfluous white space in the house
767 # Set Header = X-LWS-Test : superfluous white space in the house
768 # Expect Header = X-LWS-Test: superfluous white space in the house
769 # Set Header = X-LWS-Test: :superfluous white space in the house
770 # Expect Header = X-LWS-Test: :superfluous white space in the house
771 # Set Header = X-LWS-Test: :no superfluous white space here
772 # Expect Header = NO CHANGE
773 # Set Header = X-LWS-Test: superfluous white tabs in the house
774 # Expect Header = X-LWS-Test: superfluous white tabs in the house
775 # Set Header = X-LWS-Test : superfluous white tabs in the house
776 # Expect Header = X-LWS-Test: superfluous white tabs in the house
777 # Set Header = X-LWS-Test: "leave quoted lws alone"
778 # Expect Header = X-LWS-Test: "leave quoted lws alone"
779 # Set Header = X-LWS-Test: "leave quoted lws alone" thxbye
780 # Expect Header = X-LWS-Test: "leave quoted lws alone" thxbye
781 # Set Header = X-LWS-Test: " Do I Look like quoted text? Me thinks not.
782 # Expect Header = X-LWS-Test: " Do I Look like quoted text? Me thinks not.
783 # Set Header = X-LWS-Test: "This is quoted" this is not "but this is again"
784 # Expect Header = X-LWS-Test: "This is quoted" this is not "but this is again"
785 # Set Header = X-LWS-Test: "This is quoted" this is not "this is " but " this again is not
786 # Expect Header = X-LWS-Test: "This is quoted" this is not "this is " but " this again is not