Test scenario chunked-transfer-encoding: Skip tests that require 'writesize' support
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test29
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 FB\r
24 %repeat[50 x 0%0d%0a%0d%0a]%
25 \r
26 0\r
27 \r
28 </data>
29 <data1>
30 HTTP/1.1 200 OK\r
31 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
32 Connection: close\r
33 X-Connection: swsclose\r
34 Content-Type: text/html\r
35 \r
36 Here's your unchunked data.
37 </data1>
38 # The write size is chosen so that Privoxy's second read
39 # gets data that ends in 0\r\n\r\n but does not actually
40 # contain the last chunk.
41 <servercmd>
42 writesize: 306
43 writedelay: 100
44 </servercmd>
45 </reply>
46
47 <client>
48 <server>
49 http
50 </server>
51 <name>
52 Chunked transfer encoding - Chunk that contains lots of potential "last-chunks" as data. Filtering disabled.
53 </name>
54 <features>
55 proxy
56 </features>
57 # Set a custom User-Agent so the request size does
58 # not depend on whether or not curl is a debug build.
59 <command>
60 --user-agent "Blafasel/1 beta" --raw http://%HOSTIP:%HTTPPORT/no-filter/chunked-content/%TESTNUMBER0000 --max-time 2 --raw http://%HOSTIP:%HTTPPORT/no-filter/unchunked-content/%TESTNUMBER0001
61 </command>
62 </client>
63
64 <verify>
65 <protocol>
66 GET /no-filter/chunked-content/%TESTNUMBER0000 HTTP/1.1\r
67 Host: %HOSTIP:%HTTPPORT\r
68 User-Agent: Blafasel/1 beta\r
69 Accept: */*\r
70 \r
71 GET /no-filter/unchunked-content/%TESTNUMBER0001 HTTP/1.1\r
72 Host: %HOSTIP:%HTTPPORT\r
73 User-Agent: Blafasel/1 beta\r
74 Accept: */*\r
75 \r
76 </protocol>
77 <errorcode>
78 0
79 </errorcode>
80 </verify>
81 </testcase>