Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test42
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 0\r
19 \r
20 </data>
21 <servercmd>
22 writedelay: 20
23 writesize: 136
24 </servercmd>
25 </reply>
26
27 <proxy-reply>
28 <data>
29 HTTP/1.1 200 OK\r
30 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
31 Connection: keep-alive\r
32 Content-Type: text/html\r
33 Content-Length: 0\r
34 \r
35 </data>
36 </proxy-reply>
37
38 <client>
39 <server>
40 http
41 </server>
42 <name>
43 Chunked transfer encoding - Only last chunk that partially arrives with server headers with connection keep-alive, no actual data.
44 </name>
45 <features>
46 proxy
47 </features>
48 <command>
49 http://%HOSTIP:%HTTPPORT/chunked-transfer-encoding/%TESTNUMBER
50 </command>
51 </client>
52
53 <verify>
54 <protocol>
55 GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1\r
56 Host: %HOSTIP:%HTTPPORT\r
57 User-Agent: curl/%VERSION\r
58 Accept: */*\r
59 \r
60 </protocol>
61 <errorcode>
62 0
63 </errorcode>
64 </verify>
65 </testcase>