When using POST method to request via Nginx 0.6.33 without any post body data, you may get this error: 411 Length Required. Download nginx-0.6.33-length_required patch Save the attachment and run this command in the root path of nginx 0.6.33 source code: patch ./src/http/ngx_http_request.c<nginx-0_6_33-length_required.patch Then "make && make install && sudo /sbin/service nginx restart" and enjoy your AJAX function.
Here is some information about this discuss:
http://www.ruby-forum.com/topic/162976#754426
Comment 作者: rocky — 2008-11-29 @ 11:36
Here is the patch for nginx 0.6.34: http://rocky.blog.kingtch.com/files/2008/11/nginx-0.6.34-411_length_required.patch
Comment 作者: rocky — 2008-11-29 @ 12:06
хорошо пишете
Comment 作者: Kaverin — 2009-06-17 @ 11:57