GET request with body

Trustin Lee (이희승) trustin at gmail.com
Mon Oct 12 22:33:06 EDT 2009


Just to confirm Frederic's explanation - Yes, Netty HttpMessageDecoder
allows both empty and non-empty content in any HTTP request.  If
there's nither 'Content-Length' nor 'Transfer-encoding: chunked'
header in the request, then the decoder will assume an empty content.
Otherwise, it will read the content as described in the header.

HTH

— Trustin Lee, http://gleamynode.net/

On Wed, Sep 30, 2009 at 2:50 PM, Frederic Bregier <fredbregier at free.fr> wrote:
>
> Hi Shay,
>
> I'm not totally a specialist, but in this case I think there are two
> answers:
>
> 1) the HTTP protocol supposes that no body is transfered when a GET request
> occurs. I talk of course about the request, not the answer which always
> could have a body...
>
> 2) the http codec in Netty seems to be permissive, that is to say that if a
> GET request occurs, it could have a body however. But it is not correct from
> the HTTP protocol.
>
> HTH,
> Frederic
>
>
> Shay Banon wrote:
>>
>> Hi,
>>
>>   I am using netty http support and wanted to ask if netty supports GET
>> operation with body (the http spec seems to be vague about that).
>>
>> Cheers,
>> Shay
>>
>
>
> -----
> Hardware/Software Architect
> --
> View this message in context: http://n2.nabble.com/GET-request-with-body-tp3739290p3740881.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>



More information about the netty-users mailing list