Welcome! Log In Create A New Profile

Advanced

Re: Empty request body using Embedded Perl

杨镭
January 17, 2011 09:46AM
Hi:

Thanks for the clarification.

I am sure that the request body did not exceed client_body_buffer_size
since those requests body are very small , e.g,. curl -X POST -d
"name=rachel" http://example.sdo.com.

If $r->has_request_body() returns 1, the request body is indeed in
memory-buffered which means I don't need to call
$r->request_body_file.

Please point out what I did wrong, thanks.

On Mon, Jan 17, 2011 at 11:15 AM, agentzh <agentzh@gmail.com> wrote:
> On Wed, Jan 12, 2011 at 11:26 AM, 杨镭 <clanherb@gmail.com> wrote:
>>
>> Hi all,
>>
>> We use $r->request_body method from Embedded Perl to process request
>> body. The problem is although $r->has_request_body() returns 1, the
>> request body is still evaluated to empty string.
>>
>
> The has_request_body function only return memory-buffered request body :)
>
>>
>> PS: According to the Nginx wiki, when the client body exceeds the
>> value of client_max_body_size, it will be buffered to file. So we've
>> already raised client_max_body_size to 30M, but the request body
>> remains an empty string.
>>
>
> No, exceeding client_max_body_size gives you 413 (Request Entity Too Large).
> You need to raise the value of client_body_buffer_size.
>
> Cheers,
> -agentzh
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Empty request body using Embedded Perl

杨镭 January 11, 2011 10:32PM

Re: Empty request body using Embedded Perl

agentzh January 16, 2011 10:20PM

Re: Empty request body using Embedded Perl

杨镭 January 17, 2011 09:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready