Limits on the maximum URL length for different browsers

Source: Internet
Author: User
Tags url example microsoft help

1. Today encountered a bug,window.open behind the page, receive parameters are not complete, resulting in background error. Experiment a bit. Discovery is caused by a URL that is too long when using the Get method to request the server

Microsoft's official Note:

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

ie:2,083 characters

Firefox (Browser): 65536, actual test longest word length 4098 (may be server limit)

Safari (Browser)
The maximum URL length is limited to 80,000 characters.

Opera (Browser)
The maximum URL length is limited to 190,000 characters.

Google (Chrome)
Not found, the estimate is also gray long ~ ~ ~

In addition, the maximum number of characters per server limit is also different, that is, if the browser supports a lot of character URLs, submitted to the server, will still be intercepted.

Forward from http://www.cnblogs.com/quechao123/archive/2010/12/16/2346626.html

Below is another article that said, may be a little bit more, turn from

Http://blog.sina.com.cn/s/blog_48b47ae40101ayzi.html

Maximum length limit for various browser URLs(2013-02-01 17:54:01) reproduced
Category: Work
Although the RFC specification for the HTTP protocol does not specify the maximum character length limit for URLs, in practice there is always a limit in the browser or server. The characters in this article refer to ASCII characters.

Microsoft Internet Explorer:
The maximum length limit for URLs is 2,083 characters on the Microsoft Help website, which says before IE7 (including IE7) browser.

Firefox:
For Firefox 1.5.x, the address bar can display a maximum URL length of 65,536 characters, but in fact a valid URL has a maximum length of not less than 100,000 characters.
For Firefox 3.0.5,mozilla The official forum was tested with a URL length limit of 65,000 characters.
Others say that Firefox can support URLs up to 2Gbyte in length (reference), which can be applied to URLs of such large data URLs in the data URL. The data URL is a URL in itself that contains the actual data, such as a picture, an HTML page, or all the data, code, and so on. Only Firefox supports the data URL.
Data URL Example:


This is a data URL

">this is a test


Safari:
Safari supports a minimum of 80,000 character-length URLs.

Opera:
Opera's official website says opera does not enforce restrictions on the length of URLs.
Users Test Opera 9 supports a minimum of 190,000 word-length URLs, and Opera 9 's address bar can display, edit, copy, and paste full URL strings.

Limits on the maximum URL length for different browsers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.