URL 的字符数限制是多少 [英] What is the character limit on URL

查看:33
本文介绍了URL 的字符数限制是多少的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

URL 的字符限制是多少,特别是如果 URL 是由表单的 GET 方法形成的.

What is the character limit for a URL, especially if the URL is formed from a GET method of a form.

推荐答案

根据 Microsoft 的说法,现在是 2048 年.自从他们发明了互联网(以及光明、黑暗和 Linux)以来,他们是对的.:-) .... 或者.. 因为 IE 强制使用这个较低的值,所以它是最小的公分母.

According to Microsoft it's 2048. Since they invented the internet (and also the light, the darkness and Linux) they are right. :-) .... or.. and since IE forces this lower value, it's the lowest common denominator.

http://support.microsoft.com/kb/208427

在 Firefox 下,我看到有人在网上报告 0xFFFF 的 URL 工作:http://forums.mozillazine.org/viewtopic.php?f=38&t=155648&start=0&st=0&sk=t&sd=a

Under Firefox, I see people on the net reporting URLs of 0xFFFF working: http://forums.mozillazine.org/viewtopic.php?f=38&t=155648&start=0&st=0&sk=t&sd=a

这是另一篇讨论这个的帖子:http://hiox.org/index.php?id=425

Here is another post which talks about this: http://hiox.org/index.php?id=425

在我写下这个答案将近 5 年后,这非常令人难过——这仍然是真的.如果可以,请查看此答案的历史记录.

this is very sad that almost 5 years after I wrote this answer - it is still true. If you can, look at the history of this answer.

我在 StackOverflow 上找到了更好的答案 - 一个网址在不同浏览器中的最大长度是多少?

I found a better answer on StackOverflow - What is the maximum length of a URL in different browsers?

9 年后 - Explorer 被弃用,取而代之的是 Edge,Edge 很快将使用 Blink 重新设计(使其非常接近 Chrome).我想知道这个答案有多相关.

9 years after - Explorer is deprecated in favor of Edge, Edge soon to be re-designed using Blink (making it very close to Chrome). I wonder how relevant this answer is.

这篇关于URL 的字符数限制是多少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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