Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test25
diff --git a/tests/cts/chunked-transfer-encoding/data/test25 b/tests/cts/chunked-transfer-encoding/data/test25
new file mode 100644 (file)
index 0000000..ac0dc05
--- /dev/null
@@ -0,0 +1,116 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+chunked transfer encoding
+</keywords>
+</info>
+
+<reply>
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 22 Jul 2010 11:22:33 GMT\r
+Connection: keep-alive\r
+Content-Type: text/html\r
+Transfer-Encoding: chunked\r
+\r
+12345\r
+%repeat[74564 x A]%
+\r
+67891\r
+%repeat[424080 x B]%
+\r
+31337\r
+%repeat[201526 x C]%
+\r
+31337\r
+%repeat[201526 x D]%
+\r
+31337\r
+%repeat[201526 x E]%
+\r
+0\r
+\r
+</data>
+<data1>
+HTTP/1.1 200 OK\r
+Date: Thu, 22 Jul 2010 11:22:33 GMT\r
+Connection: close\r
+X-Connection: swsclose\r
+Content-Type: text/html\r
+\r
+Here's your unchunked data.
+</data1>
+</reply>
+
+<proxy-reply>
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 22 Jul 2010 11:22:33 GMT\r
+Connection: keep-alive\r
+Content-Type: text/html\r
+Transfer-Encoding: chunked\r
+\r
+12345\r
+%repeat[74564 x A]%
+\r
+67891\r
+%repeat[424080 x B]%
+\r
+31337\r
+%repeat[201526 x C]%
+\r
+31337\r
+%repeat[201526 x D]%
+\r
+31337\r
+%repeat[201526 x E]%
+\r
+0\r
+\r
+</data>
+<data1>
+HTTP/1.1 200 OK\r
+Date: Thu, 22 Jul 2010 11:22:33 GMT\r
+Connection: close\r
+X-Connection: swsclose\r
+Content-Type: text/html\r
+\r
+Here's your unchunked data.
+</data1>
+</proxy-reply>
+
+<client>
+<server>
+http
+</server>
+<name>
+Chunked transfer encoding - Multiple largish chunks on connection that is kept alive. Content too large to buffer. Filtering disabled.
+</name>
+<features>
+proxy
+</features>
+<command>
+--max-time 20 --raw http://%HOSTIP:%HTTPPORT/no-filter/chunked-content/%TESTNUMBER0000 --raw http://%HOSTIP:%HTTPPORT/no-filter/unchunked-content/%TESTNUMBER0001
+</command>
+</client>
+
+<verify>
+<protocol>
+GET /no-filter/chunked-content/%TESTNUMBER0000 HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+User-Agent: curl/%VERSION\r
+Accept: */*\r
+\r
+GET /no-filter/unchunked-content/%TESTNUMBER0001 HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+User-Agent: curl/%VERSION\r
+Accept: */*\r
+\r
+</protocol>
+<errorcode>
+0
+</errorcode>
+</verify>
+</testcase>