Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test36
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 chunked transfer encoding
7 </keywords>
8 </info>
9
10 <reply>
11 <data nonewline="yes">
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 FE\r
19 %repeat[253 x A]%
20 \r
21 A The previous size could be valid but the line does not end with CRLF %repeat[1000 x Padding]%
22 </data>
23 # We only send parts of the response and then wait longer
24 # than Privoxy's socket-timeout to make sure Privoxy always
25 # forwards the same data to curl.
26 <servercmd>
27 writesize: 4000
28 writedelay: 4000
29 </servercmd>
30 </reply>
31 <reply>
32
33 <proxy-reply>
34 <data nonewline="yes">
35 HTTP/1.1 200 OK\r
36 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
37 Connection: keep-alive\r
38 Content-Type: text/html\r
39 Transfer-Encoding: chunked\r
40 \r
41 FE\r
42 %repeat[253 x A]%
43 \r
44 A The previous size could be valid but the line does not end with CRLF %repeat[505 x Padding]%P
45 </data>
46 </proxy-reply>
47
48 <client>
49 <server>
50 http
51 </server>
52 <name>
53 Chunked transfer encoding - Invalid chunk-size line. Filtering disabled.
54 </name>
55 <features>
56 proxy
57 </features>
58 <command timeout="20">
59 --raw http://%HOSTIP:%HTTPPORT/no-filter/chunked-content/%TESTNUMBER
60 </command>
61 </client>
62
63 <verify>
64 <protocol>
65 GET /no-filter/chunked-content/%TESTNUMBER HTTP/1.1\r
66 Host: %HOSTIP:%HTTPPORT\r
67 User-Agent: curl/%VERSION\r
68 Accept: */*\r
69 \r
70 </protocol>
71 <errorcode>
72 18
73 </errorcode>
74 </verify>
75 </testcase>