Add tests for redirects for https-inspected requests
[privoxy.git] / tests / cts / redirects-https / data / test2
diff --git a/tests/cts/redirects-https/data/test2 b/tests/cts/redirects-https/data/test2
new file mode 100644 (file)
index 0000000..60e815f
--- /dev/null
@@ -0,0 +1,47 @@
+<testcase>
+<info>
+<keywords>
+HTTPS
+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 200 Connection established
+
+HTTP/1.1 302 Local Redirect from Privoxy
+Location: https://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 https://www.privoxy.org
+</name>
+<command>
+--insecure https://%HOSTIP/%TESTNUMBER-redirect-me-to-www.privoxy.org
+</command>
+</client>
+
+<verify>
+</verify>
+</testcase>