Test scenario chunked-transfer-encoding: Skip tests that require 'writesize' support
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test39
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 12345\r
21 %repeat[74564 x A]%
22 \r
23 67891\r
24 %repeat[424080 x B]%
25 \r
26 31337\r
27 %repeat[201526 x C]%
28 \r
29 1d4c0\r
30 %repeat[120000 x D]%
31 \r
32 0\r
33 \r
34 </data>
35 <data1>
36 HTTP/1.1 200 OK\r
37 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
38 Connection: close\r
39 X-Connection: swsclose\r
40 Content-Type: text/html\r
41 \r
42 Here's your unchunked data.
43 </data1>
44 <servercmd>
45 writesize: 5000
46 </servercmd>
47 </reply>
48
49 <client>
50 <server>
51 http
52 </server>
53 <name>
54 Chunked transfer encoding - Multiple largish chunks on connection that is kept alive. Filtering enabled but content too large to buffer. Last-chunk arrives when reaching the buffer limit.
55 </name>
56 <features>
57 proxy
58 </features>
59 <command>
60 --max-time 20 --raw http://%HOSTIP:%HTTPPORT/chunked-transfer-encoding/%TESTNUMBER0000 --raw http://%HOSTIP:%HTTPPORT/unchunked-content/%TESTNUMBER0001
61 </command>
62 </client>
63
64 <verify>
65 <protocol>
66 GET /chunked-transfer-encoding/%TESTNUMBER0000 HTTP/1.1\r
67 Host: %HOSTIP:%HTTPPORT\r
68 User-Agent: curl/%VERSION\r
69 Accept: */*\r
70 \r
71 GET /unchunked-content/%TESTNUMBER0001 HTTP/1.1\r
72 Host: %HOSTIP:%HTTPPORT\r
73 User-Agent: curl/%VERSION\r
74 Accept: */*\r
75 \r
76 </protocol>
77 <errorcode>
78 0
79 </errorcode>
80 </verify>
81 </testcase>