[Http] the maximum length of the ie url and how to solve the maximum length limit of the URL

Source: Internet
Author: User

Users get used to the convenience and convenience of passing parameters in URLs. However, most people do not know how to request a page through get and pass a too long parameter, the IE browser automatically intercepts characters that exceed the maximum length!
According to Microsoft's authoritative explanation, the URL Length of IE is a maximum of 2083 bytes, and the length of data transmitted by get is 2048 bytes.
Maximum URL length is 2,083 characters in Internet Explorer.
Http://support.microsoft.com/default.aspx? SCID = KB; en-US; q208427
So how can we avoid the limit of the maximum length? Someone has already provided a method in the garden. Please refer to the following link.
Http://www.cnblogs.com/ppchen/archive/2008/03/18/1109607.html

 

 

Http://support.microsoft.com/default.aspx? SCID = KB; en-US; q208427

 

Http://blog.csdn.net/jia20003/article/details/8497108

 

 

 

During the test of email ticket today, we found that when performing the mark as read/unread operation, the request was made through get. The URL lists all the ticket IDs involved in this operation. As a result, I think the GET request has a maximum length limit. Enter a long string of ticket IDs for the request. The result page reports the following error:

 

HTTP Error 404.15-not found

 

The request Filtering module is configured to deny a request where the query string is too long.

 

Most likely causes:

 

  • Request filtering is configured on the Web server to deny the request because the query string is too long.

 

Things you can try:

 

  • Verify the configuration/system. webserver/security/requestfiltering/[email protected] setting in the applicationhost. config or web. config file.

 

Links and more informationthis is a security feature. do not change this feature unless the scope of the change is fully understood. you can configure the IIS server to reject requests whose query string is greater than a specified value. if the request's query string is greater than the configured value, this error is returned. if the allowed length of the query string needs to be increased, modify the configuration/system. webserver/security/requestfiltering/[email protected] setting.

 

View More information»

 

After some searches, it is found that IIS 7 has a length limit on query strings. 2048 by default.

 

To solve this problem, modify configuration/system. webserver/security/requestfiltering/[email protected] setting.

 

<requestLimits maxQueryString="length" />

 

For details, refer to Microsoft KB: error message when you visit a Web site that is hosted on a server that is running IIS 7.0: "HTTP Error 404.15-not found"

 

 

 

 

 

During the search, it is found that each browser and each web server have the following restrictions on the URL Length:

 

In the HTTP protocol, the URL length is not limited. The maximum URL length is usually related to the user's browser and the web server, the maximum length that can be accepted is often different. Of course, the maximum length of URLs that can be processed by different Web servers is also different.
The following describes the maximum processing capabilities of various browsers and servers.

 

Microsoft Internet Explorer (browser)
The maximum length of a URL in IE is 2083 characters. If this number is exceeded, the submit button does not respond. In my test, this number is verified.

 

Microsoft official notes:

 

Microsoft Internet Explorer has a maximum uniform resource locator (URL) Length of 2,083 characters. internet Explorer also has a maximum path length of 2,048 characters. this limit applies to both POST request and get request URLs.
If you are using the get method, you are limited to a maximum of 2,048 characters, minus the number of characters in the actual path.
However, the POST method is not limited by the size of the URL for submitting name/value pairs. These pairs are transferred in the header and not in the URL.

Firefox (browser)

The URL Length of the Firefox browser is limited to 65,536 characters, but when I test it, it can only process a maximum of 8182 characters, because the URL length is not limited by the browser, it is also subject to Web Server restrictions, while my local machine uses the Ubuntu Apache server with a maximum processing capacity of 8192 characters (a difference of 10 characters, I do not know why ), once the length is exceeded, the server returns the following error message.

 

Safari (browser)
The maximum length of a URL is 80,000 characters.

 

Opera (browser)
The maximum length of a URL is 190,000 characters.

 

Google (chrome)
If the URL length exceeds 8182 characters, the following server error occurs:

 

Write

 

Request-URI Too large
The requested URL's length exceeds the capacity limit for this server.
Apache/2.2.12 (UBUNTU) server at 127.0.1.1 port 80

 

Apache (server)
The maximum length of a URL is 8,192 characters, but the test data is 8,182 and 10 characters. The difference is not. The data is correct.

 

Microsoft Internet Information Server (IIS)
The maximum allowed URL length is 16,384 characters.

 

We can see from the above data that, in order to make all users can browse normally, our URL should not exceed the maximum length limit of IE (2038 characters), of course, if the URL is not directly provided to the user but provided to the program for calling, the length of the side is only affected by the Web server.

 

Note: Some may take it for granted that if the maximum length is 2038 characters, is it possible to pass about 1000 Chinese characters as a parameter. In this case, it is not correct. The transmission of Chinese characters will eventually be passed in the URL encoded format. If the browser code is utf8, the final encoding length of a Chinese character is 9 characters.

 

Http://www.cnblogs.com/henryhappier/archive/2010/10/09/1846554.html

 

[Http] the maximum length of the ie url and how to solve the maximum length limit of the URL

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.