Add test scenario chunked-transfer-encoding
[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 </keywords>
8 </info>
9
10 <reply>
11 <data>
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 12345\r
19 %repeat[74564 x A]%
20 \r
21 67891\r
22 %repeat[424080 x B]%
23 \r
24 31337\r
25 %repeat[201526 x C]%
26 \r
27 1d4c0\r
28 %repeat[120000 x D]%
29 \r
30 0\r
31 \r
32 </data>
33 <data1>
34 HTTP/1.1 200 OK\r
35 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
36 Connection: close\r
37 X-Connection: swsclose\r
38 Content-Type: text/html\r
39 \r
40 Here's your unchunked data.
41 </data1>
42 <servercmd>
43 writesize: 5000
44 </servercmd>
45 </reply>
46
47 <client>
48 <server>
49 http
50 </server>
51 <name>
52 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.
53 </name>
54 <features>
55 proxy
56 </features>
57 <command>
58 --max-time 20 --raw http://%HOSTIP:%HTTPPORT/chunked-transfer-encoding/%TESTNUMBER0000 --raw http://%HOSTIP:%HTTPPORT/unchunked-content/%TESTNUMBER0001
59 </command>
60 </client>
61
62 <verify>
63 <protocol>
64 GET /chunked-transfer-encoding/%TESTNUMBER0000 HTTP/1.1\r
65 Host: %HOSTIP:%HTTPPORT\r
66 User-Agent: curl/%VERSION\r
67 Accept: */*\r
68 \r
69 GET /unchunked-content/%TESTNUMBER0001 HTTP/1.1\r
70 Host: %HOSTIP:%HTTPPORT\r
71 User-Agent: curl/%VERSION\r
72 Accept: */*\r
73 \r
74 </protocol>
75 <errorcode>
76 0
77 </errorcode>
78 </verify>
79 </testcase>