Chrome浏览器中URL的最大长度 [英] Maximum length for url in chrome browser

查看:1900
本文介绍了Chrome浏览器中URL的最大长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到这个受欢迎的问题:



但是因为找不到引用谷歌浏览器直接(因为大多数答案是几年前给出的)我想知道目前谷歌Chrome浏览器的URL长度限制是什么?

解决方案我相信它保持不变:


我无法在Chrome和Safari上找到任何限制。两者都基于WebKit,它似乎与Firefox具有相似的限制。



Firefox在64k字符后停止显示,但可以提供超过
100k字符。

你可以阅读更多关于它的信息



一般而言,URL长度没有限制,但<一个href =https://stackoverflow.com/a/33733386/2091793>这个答案指出,你应该保持你的URL低于2048个字符,无论如何确保它在每个客户端和服务器上都能正常工作。



有关所有浏览器的更多信息。

I have seen this popular question:

What is the maximum length of a URL in different browsers?

But since I couldn't find a reference to Google Chrome directly (and since most answers were given a few years ago) I was wondering what is the current limitation of URL length for the Google Chrome browser?

解决方案

I believe it's stayed the same:

I could not find any limits on Chrome and Safari. Both are based on WebKit and it seems to have similar limits as Firefox has.

Firefox stops displaying after 64k characters, but can serve more than 100k characters.

you can read more about it in this article.

Generally speaking there is no "limit" to a URL's length, but this answer states that you should keep your URL's under 2048 chars regardless to make sure it works in every client and server.

More information about all browsers here.

这篇关于Chrome浏览器中URL的最大长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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