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