What is the maximum length of a string that can be passed by a Get method?

Source: Internet
Author: User
The maximum length of the string that can be passed by the Get method. I've heard someone tell you that if you use get to transfer parameters, the maximum length of the URL is 256 bytes, and you're convinced.

But lately I've seen some very long URLs, can work under IE, copied down to calculate the length, is about 650 bytes, this length is far more than 256 bytes. There is some doubt about the previous statement--with the major search engines, and finally find the most authoritative explanation-- Maximum URL length is 2,083 characters in Internet Explorer.

Yes, ie url maximum length is 2,083 bytes, can be used for get pass data is 2048 bytes in length, this number is not small, far more than 256 of this once considered the most correct number.

In addition, the data passed by the Post method is not affected by this length, and its value is transmitted through the browser header instead of the URL.



After the actual test

The total length of the URL address under IE8 is: 4076, exceeding the length will automatically ignore the following content;

The total length of the URL address under Firefox 25 can be reached: 7530, exceeding the length will access the error ;

The maximum total length of the chrome 29.0.1547.62 is: 7675, exceeding the length will access the error ;


Thus, in the previous browser, perhaps the maximum length of the URL is 256 is possible (now can not find IE6 or previous version to test),




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.