Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test27
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 10\r
19 %repeat[9 x A]%
20 \r
21 0\r
22 \r
23 </data>
24 <data1>
25 HTTP/1.1 200 OK\r
26 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
27 Connection: close\r
28 X-Connection: swsclose\r
29 Content-Type: text/html\r
30 \r
31 Here's your unchunked data.
32 </data1>
33 <servercmd>
34 writesize: 10000
35 </servercmd>
36 </reply>
37
38 <proxy-reply>
39 <data>
40 HTTP/1.1 200 OK\r
41 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
42 Connection: keep-alive\r
43 Content-Type: text/html\r
44 Transfer-Encoding: chunked\r
45 \r
46 10\r
47 %repeat[9 x A]%
48 \r
49 0\r
50 \r
51 </data>
52 <data1>
53 HTTP/1.1 200 OK\r
54 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
55 Connection: close\r
56 X-Connection: swsclose\r
57 Content-Type: text/html\r
58 \r
59 Here's your unchunked data.
60 </data1>
61 </proxy-reply>
62
63 <client>
64 <server>
65 http
66 </server>
67 <name>
68 Chunked transfer encoding - Small chunks that are received together with the sever headers. Filtering disabled.
69 </name>
70 <features>
71 proxy
72 </features>
73 <command>
74 --raw http://%HOSTIP:%HTTPPORT/no-filter/chunked-content/%TESTNUMBER0000 --max-time 2 --raw http://%HOSTIP:%HTTPPORT/no-filter/unchunked-content/%TESTNUMBER0001
75 </command>
76 </client>
77
78 <verify>
79 <protocol>
80 GET /no-filter/chunked-content/%TESTNUMBER0000 HTTP/1.1\r
81 Host: %HOSTIP:%HTTPPORT\r
82 User-Agent: curl/%VERSION\r
83 Accept: */*\r
84 \r
85 GET /no-filter/unchunked-content/%TESTNUMBER0001 HTTP/1.1\r
86 Host: %HOSTIP:%HTTPPORT\r
87 User-Agent: curl/%VERSION\r
88 Accept: */*\r
89 \r
90 </protocol>
91 <errorcode>
92 0
93 </errorcode>
94 </verify>
95 </testcase>