Maximum length of browser URL parameters

Source: Internet
Author: User

These days to solve a bug headache for some time, the bug phenomenon is as follows:

The selection control of a selection of people, when more than one person (more than 50 times), return no error phenomenon, and once again open when the report 404 error.
See this error very puzzled, can not start, can only look at the code of the control, in detail to see the code, all parameters are passed through the URL, hurriedly baidu url parameter size limit (from this Baidu start, I entered a misunderstanding: parameter size limit). The results found on the Internet that the size of the URL parameter is 256 bytes, and then look at their own data, indeed more than so much, since the reason for the modification, the parameter transfer method is modified to not pass the URL.
After a few days, again turn out this bug, want to solve the perfect point, once again Baidu, found that the first understanding of the complete error, a thorough query, summed up the following two points, and the corresponding URL parameter size limit of 256 bytes, I can not determine whether there is this talk, at least test not this now.
1. The URL length of each browser is now.
2. IIS 7 has a length limit on Query String; default: 2048;
According to the information on the Internet (recommended a blog: http://www.cnblogs.com/henryhappier/archive/2010/10/09/1846554.html) to understand the length of each browser to the URL is now as follows:
1. The length of the URL for IE browser is now limited to 2048 bytes (up to 2047 bytes of your own test).
2. The 360 speed browser has a limit of 2118 bytes to the URL length.
3. Firefox (Browser) limits the length of the URL to 65536 bytes.
4. Safari (Browser) limits the length of the URL to 80000 bytes.
5. Opera (Browser) limits the length of the URL to 190000 bytes.
6. Google (chrome) limits the length of the URL to 8182 bytes.
Here, I've only tested Internet Explorer and 360 speed browsers, and other browsers are from online sources.

Also remind everyone, in the URL, a Chinese character by different encoding method size is not the same.

Maximum length of browser URL parameters

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.