HEAD method in HttpResponseDecoder

"이희승 (Trustin Lee)" trustin at gmail.com
Wed Aug 25 06:46:09 EDT 2010


Check the 'Decoding a response for a HEAD request' section:


http://docs.jboss.org/netty/3.2/api/org/jboss/netty/handler/codec/http/HttpResponseDecoder.html

In short, please use HttpClientCodec instead, which handles such request
types properly.

HTH,
T

On 08/25/2010 04:33 PM, robert.ambrose at muttsoft.com wrote:
> 
> It looks like HttpResponseDecoder is trying to read a message body of the 
> response to a HEAD request.  According to rfc 2616 sections 4.3 and 9.4, 
> this response should never have a message body.  The problem is there's 
> still a Content-Length header present in the response so 
> HttpResponseDecoder waits forever for the the message body.  Somehow the 
> response needs to know that the method of the request was a HEAD.
> 
> rna
> 
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users

-- 
what we call human nature in actuality is human habit
http://gleamynode.net/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 293 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100825/e3ee61bb/attachment.bin 


More information about the netty-users mailing list