Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test24
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 6\r
19 AAAAA
20 \r
21 6\r
22 BBBBB
23 \r
24 0\r
25 \r
26 </data>
27 <servercmd>
28 writedelay: 20
29 </servercmd>
30 </reply>
31
32 <proxy-reply>
33 <data>
34 HTTP/1.1 200 OK\r
35 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
36 Connection: keep-alive\r
37 Content-Type: text/html\r
38 Transfer-Encoding: chunked\r
39 \r
40 6\r
41 AAAAA
42 \r
43 6\r
44 BBBBB
45 \r
46 0\r
47 \r
48 </data>
49 </proxy-reply>
50
51 <client>
52 <server>
53 http
54 </server>
55 <name>
56 Chunked transfer encoding - Multiple small chunks send delayed. Connection kept alive.
57 </name>
58 <features>
59 proxy
60 </features>
61 <command>
62  --max-time 10 --raw http://%HOSTIP:%HTTPPORT/no-filter/%TESTNUMBER --next --max-time 10 --raw http://%HOSTIP:%HTTPPORT/no-filter/%TESTNUMBER
63 </command>
64 </client>
65
66 <verify>
67 <protocol>
68 GET /no-filter/%TESTNUMBER HTTP/1.1\r
69 Host: %HOSTIP:%HTTPPORT\r
70 User-Agent: curl/%VERSION\r
71 Accept: */*\r
72 \r
73 GET /no-filter/%TESTNUMBER HTTP/1.1\r
74 Host: %HOSTIP:%HTTPPORT\r
75 User-Agent: curl/%VERSION\r
76 Accept: */*\r
77 \r
78 </protocol>
79 </verify>
80 </testcase>