Test scenario chunked-transfer-encoding: Skip tests that require 'writesize' support
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test26
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 31337\r
30 %repeat[201526 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: 10000
46 writedelay: 5
47 </servercmd>
48 </reply>
49
50 <proxy-reply>
51 <data>
52 HTTP/1.1 200 OK\r
53 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
54 Connection: keep-alive\r
55 Content-Type: text/html\r
56 Transfer-Encoding: chunked\r
57 \r
58 12345\r
59 %repeat[74564 x A]%
60 \r
61 67891\r
62 %repeat[424080 x B]%
63 \r
64 31337\r
65 %repeat[201526 x C]%
66 \r
67 31337\r
68 %repeat[201526 x D]%
69 \r
70 0\r
71 \r
72 </data>
73 <data1>
74 HTTP/1.1 200 OK\r
75 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
76 Connection: close\r
77 X-Connection: swsclose\r
78 Content-Type: text/html\r
79 \r
80 Here's your unchunked data.
81 </data1>
82 </proxy-reply>
83
84 <client>
85 <server>
86 http
87 </server>
88 <name>
89 Chunked transfer encoding - Multiple largish chunks on a connection that is kept alive. Filtering disabled.
90 </name>
91 <features>
92 proxy
93 </features>
94 <command>
95 --raw http://%HOSTIP:%HTTPPORT/no-filter/chunked-content/%TESTNUMBER0000 --max-time 2 --raw http://%HOSTIP:%HTTPPORT/no-filter/unchunked-content/%TESTNUMBER0001
96 </command>
97 </client>
98
99 <verify>
100 <protocol>
101 GET /no-filter/chunked-content/%TESTNUMBER0000 HTTP/1.1\r
102 Host: %HOSTIP:%HTTPPORT\r
103 User-Agent: curl/%VERSION\r
104 Accept: */*\r
105 \r
106 GET /no-filter/unchunked-content/%TESTNUMBER0001 HTTP/1.1\r
107 Host: %HOSTIP:%HTTPPORT\r
108 User-Agent: curl/%VERSION\r
109 Accept: */*\r
110 \r
111 </protocol>
112 <errorcode>
113 0
114 </errorcode>
115 </verify>
116 </testcase>