Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test31
diff --git a/tests/cts/chunked-transfer-encoding/data/test31 b/tests/cts/chunked-transfer-encoding/data/test31
new file mode 100644 (file)
index 0000000..a08608c
--- /dev/null
@@ -0,0 +1,55 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+chunked transfer encoding
+</keywords>
+</info>
+
+<reply>
+# Note that the %hex sequence is invalid and will not be transformed.
+# At first it was an accident but as it triggered
+# a bug in test build the test has been kept as is.
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 22 Jul 2010 11:22:33 GMT\r
+Content-Type: text/html\r
+Transfer-Encoding: chunked\r
+\r
+%hex[1%0d%0a%0a%0d%0a0%0d%0a%0d%0a]
+</data>
+<servercmd>
+writesize: 1000
+</servercmd>
+</reply>
+
+
+<client>
+<server>
+http
+</server>
+<name>
+Chunked transfer encoding - Chunk with invalid chunk size received with the server headers
+</name>
+<features>
+proxy
+</features>
+<command>
+--raw http://%HOSTIP:%HTTPPORT/no-filter/%TESTNUMBER
+</command>
+</client>
+
+<verify>
+<protocol>
+GET /no-filter/%TESTNUMBER HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+User-Agent: curl/%VERSION\r
+Accept: */*\r
+\r
+</protocol>
+<errorcode>
+56
+</errorcode>
+</verify>
+</testcase>