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