Test scenario chunked-transfer-encoding: Skip tests that require 'writesize' support
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test35
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 chunked transfer encoding
7 # XXX: Test requires "writesize" support that hasn't been upstreamed 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 FE\r
21 %repeat[253 x A]%
22 \r
23 XYZ\r
24 This chunk is preceded by an invalid chunk-size
25 %repeat[1000 x Padding]%
26 \r
27 0\r
28 \r
29 </data>
30 # We only send parts of the response and then wait longer
31 # than Privoxy's socket-timeout to make sure Privoxy always
32 # forwards the same data to curl.
33 <servercmd>
34 writesize: 4000
35 writedelay: 4000
36 </servercmd>
37 </reply>
38
39 <proxy-reply>
40 <data nonewline="yes">
41 HTTP/1.1 200 OK\r
42 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
43 Connection: keep-alive\r
44 Content-Type: text/html\r
45 Transfer-Encoding: chunked\r
46 \r
47 FE\r
48 %repeat[253 x A]%
49 \r
50 XYZ\r
51 This chunk is preceded by an invalid chunk-size
52 %repeat[507 x Padding]%Paddi
53 </data>
54 </proxy-reply>
55
56 <client>
57 <server>
58 http
59 </server>
60 <name>
61 Chunked transfer encoding - Invalid chunk-size. Filtering disabled.
62 </name>
63 <features>
64 proxy
65 </features>
66 <command timeout="20">
67 --raw http://%HOSTIP:%HTTPPORT/no-filter/chunked-content/%TESTNUMBER
68 </command>
69 </client>
70
71 <verify>
72 <protocol>
73 GET /no-filter/chunked-content/%TESTNUMBER HTTP/1.1\r
74 Host: %HOSTIP:%HTTPPORT\r
75 User-Agent: curl/%VERSION\r
76 Accept: */*\r
77 \r
78 </protocol>
79 <errorcode>
80 56
81 </errorcode>
82 </verify>
83 </testcase>