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