HTTP/1.1 Chunked Transfer Encoding

Hi,

 Apologies if this isn't the right list.

A simple question regarding chunked transfer encoding.

We have a J2EE server which exhibits the following behaviour. A J2EE
application sends an XML message in response to a POST request. Sometimes
the response uses chunked transfer encoding. When it does, HTTP headers are
included in the content of the first chunk, like this:

HTTP/1.1 100 Continue
Date: Tue, 21 Oct 2003 09:49:54 GMT
Server: xxxxxxxxxxx/xxx  Apache/1.3.20 (Unix)
Transfer-Encoding: chunked
Content-Type: text/html

1000
HTTP/1.1 200 OK
Server: xxxxxxxxxxxxxxxxxxx/x.x
Content-Type: text/xml; charset=ISO-8859-1
Set-Cookie: JSESSIONID=00002NIZZPVLHKOY1JUST5RFHCA:unv3ultr;Path=/
Cache-Control: no-cache="set-cookie,set-cookie2"
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-Length: 5997
Content-Language: en

<?xml version="1.0" encoding="ISO-8859-1"
?><message><m_control><control_timestamp>

Received on Friday, 24 October 2003 05:43:53 UTC