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