Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test10
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 chunked transfer encoding
7 </keywords>
8 </info>
9
10 <reply>
11 <data>
12 HTTP/1.1 200 OK\r
13 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
14 Connection: close\r
15 Content-Type: text/html\r
16 Transfer-Encoding: chunked\r
17 X-Control: swsclose\r
18 \r
19 100\r
20 %repeat[255 x A]%
21 \r
22 100\r
23 %repeat[255 x B]%
24 \r
25 100\r
26 %repeat[255 x C]%
27 \r
28 Bogus data.\r
29 </data>
30 </reply>
31
32 <client>
33 <server>
34 http
35 </server>
36 <name>
37 Chunked transfer encoding - Multiple chunks, bogus data instead of last chunk.
38 </name>
39 <features>
40 proxy
41 </features>
42 <command>
43 --raw http://%HOSTIP:%HTTPPORT/chunked-transfer-encoding/%TESTNUMBER
44 </command>
45 </client>
46
47 <verify>
48 <protocol>
49 GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1\r
50 Host: %HOSTIP:%HTTPPORT\r
51 User-Agent: curl/%VERSION\r
52 Accept: */*\r
53 \r
54 </protocol>
55 <errorcode>
56 18
57 </errorcode>
58 </verify>
59 </testcase>