Empty request body using Embedded Perl

agentzh agentzh at gmail.com
Mon Jan 17 06:15:54 MSK 2011


On Wed, Jan 12, 2011 at 11:26 AM, 杨镭 <clanherb at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110117/d38e775a/attachment.html>


More information about the nginx mailing list