Add test scenario header-filters
[privoxy.git] / tests / cts / header-filters / data / test3
diff --git a/tests/cts/header-filters/data/test3 b/tests/cts/header-filters/data/test3
new file mode 100644 (file)
index 0000000..776fab8
--- /dev/null
@@ -0,0 +1,67 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+server-header-filter xml-to-html
+</keywords>
+</info>
+
+<reply>
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 22 Jul 2010 11:22:33 GMT\r
+Connection: close\r
+Content-Type: application/xhtml+xml; blafasel\r
+Content-Type: application/xml; blafasel\r
+Content-Type: application/xml\r
+Content-Type: text/xml; blafasel\r
+Content-Type: text/xml\r
+X-Control: swsclose\r
+Content-Length: 0\r
+\r
+</data>
+</reply>
+
+<proxy-reply>
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 22 Jul 2010 11:22:33 GMT\r
+Connection: close\r
+Content-Type: text/html; blafasel\r
+Content-Type: text/html; blafasel\r
+Content-Type: text/html\r
+Content-Type: text/html; blafasel\r
+Content-Type: text/html\r
+X-Control: swsclose\r
+Content-Length: 0\r
+\r
+</data>
+</proxy-reply>
+
+<client>
+<server>
+http
+</server>
+<name>
++server-header-filter{xml-to-html}
+</name>
+<features>
+proxy
+</features>
+<command>
+--head http://%HOSTIP:%HTTPPORT/xml-to-html/%TESTNUMBER
+</command>
+</client>
+
+<verify>
+<protocol>
+HEAD /xml-to-html/%TESTNUMBER HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+User-Agent: curl/%VERSION\r
+Accept: */*\r
+Connection: close\r
+\r
+</protocol>
+</verify>
+</testcase>