Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test40
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: keep-alive\r
15 Content-Type: text/html\r
16 Transfer-Encoding: chunked\r
17 \r
18 A\r
19 %repeat[9 x A]%
20 \r
21 0\r
22 \r
23 </data>
24 <servercmd>
25 writesize: 150
26 writedelay: 20
27 </servercmd>
28 </reply>
29
30 <client>
31 <server>
32 http
33 </server>
34 <name>
35 Chunked transfer encoding - Small chunks on connection that is kept alive, last chunk partially received with server headers.
36 </name>
37 <features>
38 proxy
39 </features>
40 <command>
41 --max-time 20 --raw http://%HOSTIP:%HTTPPORT/no-filter/%TESTNUMBER
42 </command>
43 </client>
44
45 <verify>
46 <protocol>
47 GET /no-filter/%TESTNUMBER HTTP/1.1\r
48 Host: %HOSTIP:%HTTPPORT\r
49 User-Agent: curl/%VERSION\r
50 Accept: */*\r
51 \r
52 </protocol>
53 <errorcode>
54 0
55 </errorcode>
56 </verify>
57 </testcase>