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 foundthe 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/requestlimits @ maxquerystring 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/requestlimits @ maxquerystring 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/requestlimits @ maxquerystring 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.
Reference from: http://www.cnblogs.com/henryhappier/archive/2010/10/09/1846554.html