2

I'm stack because all the websites on my Linux Apache2 web server which have a form to fulfil are returning 413 Request Entity Too Large Error only after first fulfil (refresh makes it working). Error looks like:

Request Entity Too Large

The requested resource
/mailman/subscribe/konrad
does not allow request data with POST requests, or the amount of data provided in the    request exceeds the capacity limit.

Request Entity Too Large

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Here is apache2 error log:

[Tue Dec 04 12:06:27 2012] [error] [client 5.184.118.16] Invalid Content-Length, referer:   http://62.87.177.20/mailman/admindb/konrad
[Tue Dec 04 12:06:27 2012] [error] [client 5.184.118.16] (-3)Unknown error 4294967293:    Error reading request entity data, referer: http://62.87.177.20/mailman/admindb/konrad
[Tue Dec 04 12:07:12 2012] [error] [client 46.134.87.133] Invalid Content-Length, referer: http://www.comfortzg.com/~lekumed2010/login.php?PHPSESSID=e6b9c4d160a2b06435bb8c0676acbe51

It gives the error on both (one using PHP and second Perl (cgi)) scripts. I'm not using SSL.

4

1 回答 1

0

可能表单是使用 GET http 方法提交的,但是浏览器构建的 url 太长。在这种情况下,通常的服务器回答是 HTTP 错误 413请求实体太大。

在这种情况下,您应该使用 POST 方法来解决这个问题。

于 2012-12-04T11:42:48.630 回答