<testcase>
<info>
<keywords>
HTTP
HTTP GET
chunked transfer encoding
</keywords>
</info>

<reply>
<data>
HTTP/1.1 200 OK
Date: Thu, 22 Jul 2010 11:22:33 GMT
Connection: close
Content-Type: text/html
Transfer-Encoding: chunked
X-Control: swsclose

100
%repeat[255 x A]%

100
%repeat[255 x B]%

100
%repeat[255 x C]%

100
%repeat[255 x %hex[%00]hex%]%

0

</data>
</reply>

<proxy-reply>
<data>
HTTP/1.1 200 OK
Date: Thu, 22 Jul 2010 11:22:33 GMT
Connection: close
Content-Type: text/html
X-Control: swsclose
Content-Length: 1024

%repeat[255 x A]%
%repeat[255 x B]%
%repeat[255 x C]%
%repeat[255 x %hex[%00]hex%]%
</data>
</proxy-reply>

<client>
<server>
http
</server>
<name>
Chunked transfer encoding - Multiple chunks, chunk at the end contains binary zeroes and is valid. XXX: Requires runtests.pl patch to work.
</name>
<features>
proxy
</features>
<command>
--raw http://%HOSTIP:%HTTPPORT/chunked-transfer-encoding/%TESTNUMBER
</command>
</client>

<verify>
<protocol>
GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

</protocol>
<errorcode>
0
</errorcode>
</verify>
</testcase>
