<div class="gmail_quote">On Wed, Jan 12, 2011 at 11:26 AM, 杨镭 <span dir="ltr">&lt;<a href="mailto:clanherb@gmail.com">clanherb@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<br>
<br>
We use $r-&gt;request_body method from Embedded Perl to process request<br>
body. The problem is although $r-&gt;has_request_body() returns 1, the<br>
request body is still evaluated to empty string.<br>
<br></blockquote><div><br>The has_request_body function only return memory-buffered request body :)<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

PS: According to the Nginx wiki, when the client body exceeds the<br>
value of client_max_body_size, it will be buffered to file. So we&#39;ve<br>
already raised client_max_body_size to 30M, but the request body<br>
remains an empty string.<br>
<br></blockquote><div><br>No, exceeding client_max_body_size gives you 413 (Request Entity Too Large). You need to raise the value of client_body_buffer_size.<br><br></div></div>Cheers,<br>-agentzh<br><br>