users@jersey.java.net

Re: [Jersey] Chunked PUT without content-length

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 30 Dec 2009 20:54:15 +0100

On Dec 30, 2009, at 7:40 PM, Markus Karg wrote:

> Mac OS X 10.5 is sending chunked PUTs without content-length header,
> which is valid http/1.1. Is Jersey able to handle this? How will it
> detect the end of the entity?


Yes, because it is managed by the Servlet (or in general the HTTP)
implementation.

The end of the entity is detected when the end of the stream has been
reached of the InputStream (return of -1 from an InputStream.read
methods).

Paul.