Add test scenario forward-to-http-proxy
[privoxy.git] / tests / cts / forward-to-http-proxy / data / test3
diff --git a/tests/cts/forward-to-http-proxy/data/test3 b/tests/cts/forward-to-http-proxy/data/test3
new file mode 100644 (file)
index 0000000..27810b8
--- /dev/null
@@ -0,0 +1,105 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+HTTP proxy
+</keywords>
+</info>
+
+<reply>
+<data>
+HTTP/1.1 200 OK
+Date: Thu, 22 Jul 2010 11:22:33 GMT
+Connection: keep-alive
+Content-Type: text/html
+Content-Length: 11
+
+Blafasel 1
+</data>
+<data1>
+HTTP/1.1 200 OK
+Date: Thu, 22 Jul 2010 11:22:33 GMT
+Connection: keep-alive
+Content-Type: text/html
+Content-Length: 11
+
+Blafasel 2
+</data1>
+<data2>
+HTTP/1.1 200 OK
+Date: Thu, 22 Jul 2010 11:22:33 GMT
+Connection: close
+Content-Type: text/html
+X-Control: swsclose
+Content-Length: 11
+
+Blafasel 3
+</data2>
+</reply>
+
+<proxy-reply>
+<data>
+HTTP/1.1 200 OK
+Date: Thu, 22 Jul 2010 11:22:33 GMT
+Connection: keep-alive
+Content-Type: text/html
+Content-Length: 11
+
+Blafasel 1
+</data>
+<data1>
+HTTP/1.1 200 OK
+Date: Thu, 22 Jul 2010 11:22:33 GMT
+Connection: keep-alive
+Content-Type: text/html
+Content-Length: 11
+
+Blafasel 2
+</data1>
+<data2>
+HTTP/1.1 200 OK
+Date: Thu, 22 Jul 2010 11:22:33 GMT
+Connection: keep-alive
+Content-Type: text/html
+Content-Length: 11
+
+Blafasel 3
+</data2>
+</proxy-reply>
+
+<client>
+<server>
+http
+</server>
+<name>
+Two requests forwarded through an HTTP proxy on a reused connection followed by request that needs a new connection
+</name>
+<features>
+proxy
+</features>
+<command>
+http://www.example.org/%TESTNUMBER0000 http://www.example.org/%TESTNUMBER0001 http://www.example.org/%TESTNUMBER0002
+</command>
+</client>
+
+<verify>
+<protocol>
+GET http://www.example.org/%TESTNUMBER0000 HTTP/1.1\r
+Host: www.example.org\r
+User-Agent: curl/%VERSION\r
+Accept: */*\r
+\r
+GET http://www.example.org/%TESTNUMBER0001 HTTP/1.1\r
+Host: www.example.org\r
+User-Agent: curl/%VERSION\r
+Accept: */*\r
+\r
+GET /%TESTNUMBER0002 HTTP/1.1\r
+Host: www.example.org\r
+User-Agent: curl/%VERSION\r
+Accept: */*\r
+\r
+</protocol>
+</verify>
+</testcase>