[Privoxy-commits] [privoxy] 20/41: Add test scenario pac-file-delivery
User Git
git at git.privoxy.org
Wed Mar 20 12:38:57 CET 2024
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit ce6260ffa119cf08767e99dad580a1c4767c8c4e
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Fri Mar 5 08:19:04 2021 +0100
Add test scenario pac-file-delivery
Sponsored by: Privoxy project funds collected at SPI
---
tests/cts/pac-file-delivery/data/test1 | 50 ++++++++++++++++++++++++++++++++
tests/cts/pac-file-delivery/privoxy.conf | 18 ++++++++++++
2 files changed, 68 insertions(+)
diff --git a/tests/cts/pac-file-delivery/data/test1 b/tests/cts/pac-file-delivery/data/test1
new file mode 100644
index 00000000..1967870f
--- /dev/null
+++ b/tests/cts/pac-file-delivery/data/test1
@@ -0,0 +1,50 @@
+<testcase>
+<info>
+<keywords>
+HTTPS
+HTTP GET
+</keywords>
+</info>
+
+<reply>
+<data>
+HTTP/1.1 200 OK
+Connection: close
+Content-Type: text/html
+Content-Length: 18
+
+Here's your data.
+</data>
+</reply>
+
+<proxy-reply>
+<data>
+function FindProxyForURL(url, host) {
+ var proxy = "PROXY 127.0.0.1:9119; DIRECT";
+ var direct = "DIRECT";
+ if (isPlainHostName(host)) {
+ return direct;
+ }
+ if (url.substring(0, 4) == "ftp:" || url.substring(0, 6) == "rsync:") {
+ return direct;
+ }
+ return proxy;
+}
+</data>
+</proxy-reply>
+
+<client>
+<server>
+none
+</server>
+<name>
+CGI request for PAC file
+</name>
+<command option="no-include">
+http://config.privoxy.org/wpad.dat
+</command>
+</client>
+
+<verify>
+</verify>
+</testcase>
diff --git a/tests/cts/pac-file-delivery/privoxy.conf b/tests/cts/pac-file-delivery/privoxy.conf
new file mode 100644
index 00000000..00398651
--- /dev/null
+++ b/tests/cts/pac-file-delivery/privoxy.conf
@@ -0,0 +1,18 @@
+listen-address 127.0.0.1:9119
+
+debug 1 # Log the destination for each request Privoxy let through. See also debug 1024.
+debug 2 # show each connection status
+debug 4 # show tagging-related messages
+debug 8 # show header parsing
+debug 32 # debug force feature
+debug 64 # debug regular expression filters
+debug 128 # debug redirects
+debug 256 # debug GIF de-animation
+debug 512 # Common Log Format
+debug 1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
+debug 4096 # Startup banner and warnings.
+debug 8192 # Non-fatal errors
+
+templdir ../../../templates
+
+keep-alive-timeout 15
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list