W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > April to June 2007

The getcontentlength property

From: Werner Donné <werner.donne@re.be>
Date: Fri, 22 Jun 2007 14:55:28 +0200
Message-ID: <467BC6C0.2030603@re.be>
To: w3c-dist-auth@w3.org


RFC 2518 says that this property must be returned if the
Content-Length header is returned in a GET response for
the resource at hand. I assume that it is allowed to return
this property if the Content-Length header is never returned,
for example, because the chunked transfer encoding is used.

Can a client rely on a previously retrieved getcontentlength
to read only part of the chunked response stream of the
following GET response?

The particular case I have is where I detect the client is on
a windows machine and is retrieving a text/plain resource. In
that case carriage returns may be added on the fly. This
increases the physical length of the resource.


Werner Donné  --  Re
Engelbeekstraat 8
B-3300 Tienen
tel: (+32) 486 425803	e-mail: werner.donne@re.be
Received on Friday, 22 June 2007 12:51:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:01:36 UTC