You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by George Gastaldi <ge...@neogrid.com.br> on 2003/06/06 13:58:10 UTC

Bug setting Content-Length

Hello !
	I think this may be considered a bug:
	When the content-length of a request is 0, an exception is thrown,
so I must explicitly change to chunked-transfer encoding. Is this the right
procedure ?  (BTW it's working fine. :) )

Thanks !

Re: Bug setting Content-Length

Posted by Adrian Sutton <ad...@intencha.com>.
Yes, you should explicitly set the transfer encoding to chunked instead 
of setting the content length to 0.  I'm not quite sure why an 
exception would be thrown on a content-length 0 though, if the 
exception isn't explicitely stating "hey don't set the content-length 
to 0" I think it might be worth sending in the stack trace so we can 
check whether or not it should happen.  It is definitely odd to specify 
a content-length of 0 but I would have thought it allowable in some 
situations.

Regards,

Adrian Sutton.

On Friday, June 6, 2003, at 09:58  PM, George Gastaldi wrote:

> Hello !
> 	I think this may be considered a bug:
> 	When the content-length of a request is 0, an exception is thrown,
> so I must explicitly change to chunked-transfer encoding. Is this the 
> right
> procedure ?  (BTW it's working fine. :) )
>
> Thanks !


Re: Bug setting Content-Length

Posted by Michael Becke <be...@u.washington.edu>.
I believe you are talking about bug 
19771<http://issues.apache.org/bugzilla/show_bug.cgi?id=19771>.  If so, 
this was fixed a few weeks ago and is part of the beta 1 release.

Mike

On Friday, June 6, 2003, at 07:58 AM, George Gastaldi wrote:

> Hello !
> 	I think this may be considered a bug:
> 	When the content-length of a request is 0, an exception is thrown,
> so I must explicitly change to chunked-transfer encoding. Is this the 
> right
> procedure ?  (BTW it's working fine. :) )
>
> Thanks !