Maximum URL Length

Source: Internet
Author: User
Tags url example
Reprinted: http://hanmuyun.blog.163.com/blog/static/7684183920095910365313/ What is the maximum URL length?

10:46:55| Category:Default category| Tag:Maximum URL limit max length |Font Size Subscription

Although the RFC specification of the HTTP protocol does not specify the maximum character length limit of the URL, in fact, there will always be restrictions in the browser or server. The characters mentioned in this Article refer to ASCII characters.

Microsoft Internet Explorer:
In Microsoft's help website, the browser before IE7 (including IE7) has a maximum URL length limit of 2,083 characters.

Firefox:
For Firefox 1.5.x, the maximum length of the URL displayed in the address bar is 65,536 characters, but the maximum length of the valid URL is not less than 100,000 characters.
For Firefox 3.0.5, someone on the Mozilla official forum tested its URL length limit to 65,000 characters.
Some people also say that Firefox can support URLs of up to 2 Gbyte length (for reference), and such large data volumes can be used in data URLs. Data URL is a URL that contains actual data, such as an image, an HTML webpage, or all data,CodeAnd so on. Only Firefox supports data URLs.
Data URL example:

<HTML>
<Body>

<
Href = "data: text/html; charsets = UTF-8, % 3C! Doctype % 20 HTML % 20 public % 20% 22-% 2f % 2fw3c % 2f % 2 GMA % 20 HTML % 204.0% 2f % 2fen % 22% 3E % 0d % 0a % 3 chtml % 20 lang % 3d % 22en % 22% 3E % 0d % 0a % 20% 3 chead % 3E % 0d % 0a % 20% 20% 3 ctitle % 3 Etest % 3C % 2 ftitle % 3E % 0d % 0a % 20% 20% 3 cstyle % 20 Type % 3d % 22 text % 2 FCSS % 22% 3E % 0d % 0a % 20% 20% 3C % 2 fstyle % 3E % 0d % 0a % 20% 3C % 2 fhead % 3E % 0d % 0a % 20% 3 cbody % 3E % 0d % 0a % 20% 20% 3cp % 3 ethis % 20is % 20a % 20 Data % 20url % 3C % 2fp % 3E % 0d % 0a % 20% 3C % 2 fbody % 3E % 0d % 0a % 3C % 2 fhtml % 3E % 0d % 0a "> This
Is a test </a>
</Body>
</Html


Safari:
Safari supports URLs with a minimum length of 80,000 characters.

Opera:
According to the official website of opera, opera does not forcibly limit the URL length.
Users test that opera 9 supports URLs with at least 190,000 characters in length, and the address bar of opera 9 can display, edit, copy, and paste the complete URL string.

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.