W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 2002

Re: Chunk encoding

From: Yves Lafon <ylafon@w3.org>
Date: Mon, 8 Jul 2002 17:27:45 +0200 (MET DST)
To: Trung Nguyen <trung@ii.uib.no>
cc: www-jigsaw@w3.org
Message-ID: <Pine.GSO.4.44.0207081723060.6443-100000@tarantula.inria.fr>

On Mon, 8 Jul 2002, Trung Nguyen wrote:

> Hi!
>
> I have a question regarding chunk encoding.
> My question is how to make jigsaw react on an
> url ( example: /chunkencoding) and chunk encode
> a fil ( any type of file, be it a picture ) and
> gives this to the client.
> I need  some tips and clue how to
> implement this in jigsaw..

Chunked Encoding is only used when there is no way to figure out the size
of the body sent.
However, there is a way to cheat here, by adding a HeaderFilter and
changing the size of Content-Length to -1, that way, jigsaw will chunk the
reply.
But note that it will work ONLY for HTTP/1.1 clients, and not HTTP/1.0.
for HTTP/1.0 the connection will simply be cut off at the end but there
will be no guarantee for the client that the body is complete.
So use at you own risk ;)

-- 
Yves Lafon - W3C
"Baroula que barouleras, au tiéu toujou t'entourneras."
Received on Monday, 8 July 2002 11:27:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:36 GMT