Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test43
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 chunked transfer encoding
7 # Does not work yet
8 skip
9 </keywords>
10 </info>
11
12 <reply>
13 <data>
14 HTTP/1.1 200 OK\r
15 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
16 Connection: keep-alive\r
17 Content-Type: text/html\r
18 Transfer-Encoding: chunked\r
19 \r
20 0\r
21 \r
22 </data>
23 <servercmd>
24 writedelay: 20
25 writesize: 136
26 </servercmd>
27 </reply>
28
29 <client>
30 <server>
31 http
32 </server>
33 <name>
34 Chunked transfer encoding - Only last chunk that partially arrives with server headers with connection keep-alive, no actual data. Filtering disabled.
35 </name>
36 <features>
37 proxy
38 </features>
39 <command>
40 --raw http://%HOSTIP:%HTTPPORT/no-filter/%TESTNUMBER --max-time 2 --raw http://%HOSTIP:%HTTPPORT/no-filter/%TESTNUMBER
41 </command>
42 </client>
43
44 <verify>
45 <protocol>
46 GET /no-filter/%TESTNUMBER HTTP/1.1\r
47 Host: %HOSTIP:%HTTPPORT\r
48 User-Agent: curl/%VERSION\r
49 Accept: */*\r
50 \r
51 GET /no-filter/%TESTNUMBER HTTP/1.1\r
52 Host: %HOSTIP:%HTTPPORT\r
53 User-Agent: curl/%VERSION\r
54 Accept: */*\r
55 \r
56 </protocol>
57 <errorcode>
58 0
59 </errorcode>
60 </verify>
61 </testcase>