Add redirect tests
[privoxy.git] / tests / cts / redirects / data / test3
diff --git a/tests/cts/redirects/data/test3 b/tests/cts/redirects/data/test3
new file mode 100644 (file)
index 0000000..625131b
--- /dev/null
@@ -0,0 +1,45 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+</keywords>
+</info>
+
+<reply>
+<data>
+HTTP/1.1 200 OK
+Connection: close
+Content-Type: text/html
+Content-Length: 29
+
+Not actually used.
+</data>
+</reply>
+
+<proxy-reply>
+<data>
+HTTP/1.1 302 Local Redirect from Privoxy
+Location: http://www.privoxy.org/
+Content-Length: 0
+X-Ignore-Header: Date
+Date: Sun, 10 Jan 2021 08:13:02 GMT
+
+</data>
+</proxy-reply>
+
+<client>
+<server>
+none
+</server>
+<name>
+Redirect to http://www.privoxy.org using a pcrs command
+</name>
+<command>
+http://www.example.org/%TESTNUMBER-redirect-me-to-www.privoxy.org
+</command>
+</client>
+
+<verify>
+</verify>
+</testcase>