Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test31
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 chunked transfer encoding
7 </keywords>
8 </info>
9
10 <reply>
11 # Note that the %hex sequence is invalid and will not be transformed.
12 # At first it was an accident but as it triggered
13 # a bug in test build the test has been kept as is.
14 <data>
15 HTTP/1.1 200 OK\r
16 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
17 Content-Type: text/html\r
18 Transfer-Encoding: chunked\r
19 \r
20 %hex[1%0d%0a%0a%0d%0a0%0d%0a%0d%0a]
21 </data>
22 <servercmd>
23 writesize: 1000
24 </servercmd>
25 </reply>
26
27
28 <client>
29 <server>
30 http
31 </server>
32 <name>
33 Chunked transfer encoding - Chunk with invalid chunk size received with the server headers
34 </name>
35 <features>
36 proxy
37 </features>
38 <command>
39 --raw http://%HOSTIP:%HTTPPORT/no-filter/%TESTNUMBER
40 </command>
41 </client>
42
43 <verify>
44 <protocol>
45 GET /no-filter/%TESTNUMBER HTTP/1.1\r
46 Host: %HOSTIP:%HTTPPORT\r
47 User-Agent: curl/%VERSION\r
48 Accept: */*\r
49 \r
50 </protocol>
51 <errorcode>
52 56
53 </errorcode>
54 </verify>
55 </testcase>