Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test38
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 31337\r
31 %repeat[201526 x E]%
32 \r
33 0\r
34 \r
35 </data>
36 <data1>
37 HTTP/1.1 200 OK\r
38 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
39 Connection: close\r
40 X-Connection: swsclose\r
41 Content-Type: text/html\r
42 \r
43 Here's your unchunked data.
44 </data1>
45 </reply>
46
47 <proxy-reply>
48 <data>
49 HTTP/1.1 200 OK\r
50 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
51 Connection: keep-alive\r
52 Content-Type: text/html\r
53 Transfer-Encoding: chunked\r
54 \r
55 12345\r
56 %repeat[74564 x A]%
57 \r
58 67891\r
59 %repeat[424080 x B]%
60 \r
61 31337\r
62 %repeat[201526 x C]%
63 \r
64 31337\r
65 %repeat[201526 x D]%
66 \r
67 31337\r
68 %repeat[201526 x E]%
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 connection that is kept alive. Filtering enabled but content too large to buffer.
90 </name>
91 <features>
92 proxy
93 </features>
94 <command>
95 --max-time 20 --raw http://%HOSTIP:%HTTPPORT/chunked-transfer-encoding/%TESTNUMBER0000 --raw http://%HOSTIP:%HTTPPORT/unchunked-content/%TESTNUMBER0001
96 </command>
97 </client>
98
99 <verify>
100 <protocol>
101 GET /chunked-transfer-encoding/%TESTNUMBER0000 HTTP/1.1\r
102 Host: %HOSTIP:%HTTPPORT\r
103 User-Agent: curl/%VERSION\r
104 Accept: */*\r
105 \r
106 GET /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>