414请求URI太大 - 这是依赖于浏览器?这是、太大、浏览器、依赖于

2023-09-10 21:36:23 作者:再见·过去

当我尝试使用Firebug的调试,我看到了这414错误。

When i try to debug using Firebug , i saw this 414 error.

在IE 6中我得到的错误,当20后的记录,在Mozilla其超过50, 在IE 8 100多。

In IE 6 am getting error when post 20 records, in Mozilla its more than 50, in IE 8 more than 100.

当我谷歌,我觉得它是服务器的事情,是与Apache的。

When i Google it , i find it as server thing , something to do with Apache.

我使用jQuery,阿贾克斯,PHP组合。

Am using Jquery , Ajax ,PHP combination.

页面重定向也有提交后

请分享任何关于此错误的信息。

Please share Any information regarding this error .

推荐答案

是的,depents在浏览器上。如果你有这样长的URL你有一个设计问题呢。

Yes, depents on the browser. If you have such long url's you have a design problem anyway.

发现这个在互联网上,有点过时,但给你的想法有多长的URL即可。如果您发布的数据使用GET POST方法来代替。

Found this on the internet, bit outdated but gives you an idea how long an url can be. If your posting data use the POST method instead of a GET.

微软的Internet Explorer(浏览器)

微软指出最大   URL的Internet Explorer中长   是2,083个字符,不超过   在路径部分2048字符   URL的。在我的测试,尝试   使用的URL超过该公司生产的   在Internet明确的错误信息   资源管理器。

Microsoft states that the maximum length of a URL in Internet Explorer is 2,083 characters, with no more than 2,048 characters in the path portion of the URL. In my tests, attempts to use URLs longer than this produced a clear error message in Internet Explorer.

火狐(浏览器)

在65536个字符,位置   栏不再显示在URL中   视窗火狐1.5.x.然而,较长的   网址会工作。我停下来测试   经过100,000个字符。

After 65,536 characters, the location bar no longer displays the URL in Windows Firefox 1.5.x. However, longer URLs will work. I stopped testing after 100,000 characters.

Safari浏览器(浏览器)

在80000以上的字符将正常工作。   我80000后停止测试   字符。歌剧(浏览器)

At least 80,000 characters will work. I stopped testing after 80,000 characters. Opera (Browser)

目前至少有19万字会工作。   我19万后停止测试   字符。 Opera 9中的Windows   继续显示完全可编辑,   在能够复制和pasteable网址   地址栏甚至在19万   字符。

At least 190,000 characters will work. I stopped testing after 190,000 characters. Opera 9 for Windows continued to display a fully editable, copyable and pasteable URL in the location bar even at 190,000 characters.

的Apache(服务器)

我早期的尝试来衡量   最大URL长度的网络浏览器   碰到一个服务器URL长度的限制   大约4000个字符,   之后阿帕奇产生413   实体过大的错误。我用了   目前最新版本的Apache发现   在红帽企业版Linux 4,   只有Apache官方文档   提到上的8,192字节的限制   在请求各个领域。

My early attempts to measure the maximum URL length in web browsers bumped into a server URL length limit of approximately 4,000 characters, after which Apache produces a "413 Entity Too Large" error. I used the current up to date Apache build found in Red Hat Enterprise Linux 4. The official Apache documentation only mentions an 8,192-byte limit on an individual field in a request.