我该如何解决HTTP 414 QUOT;请求URI太长"错误? [英] How do I resolve a HTTP 414 "Request URI too long" error?

查看:341
本文介绍了我该如何解决HTTP 414 QUOT;请求URI太长"错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了PHP的Web应用程序。我给一个选项,用户就一气呵成更新多个问题。在这样做时,有时用户遇到此错误。有什么办法来增加URL的lenght在apache的?

I have developed a PHP web app. I am giving an option to the user to update multiple issues on one go. In doing so, sometimes the user is encountering this error. Is there any way to increase the lenght of URL in apache?

推荐答案

在Apache的,限制是一个可配置的值, <一个href=\"http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestline\"><$c$c>LimitRequestLine.如果你想支持一个较长的请求URI这个值更改为比其8190默认大。

Under Apache, the limit is a configurable value, LimitRequestLine. Change this value to something larger than its default of 8190 if you want to support a longer request URI.

但请注意,如果你实际运行了这个限制,你可能滥用 GET 开始。您应该使用 POST 发送这类数据 - 尤其是因为你甚至承认你使用它来更新值。如果您检查上面的链接,你会发现,即使是Apache的说:在正常情况下,该值不应该更改默认的。

However, note that if you're actually running into this limit, you are probably abusing GET to begin with. You should use POST to transmit this sort of data -- especially since you even concede that you're using it to update values. If you check the link above, you'll notice that Apache even says "Under normal conditions, the value should not be changed from the default."

这篇关于我该如何解决HTTP 414 QUOT;请求URI太长&QUOT;错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆