Through the problem of URL value, so the URL string is encodeuricomponent the URL string content encoding, problem resolution, but sometimes the request filtering module is configured to deny A request where the query string is too long, the problem is that there is a length limit when passing a string in get mode.
IIS 7 has a length limit for query string. The default is 2048.
The solution to this problem can be modified by Configuration/system.webserver/security/requestfiltering/[email protected] setting.
<requestlimits maxquerystring= "Length"/>
The URL length restrictions for each browser and Web server are as follows:
In the HTTP protocol, there is no limit to the length of the URL, often the maximum length of the URL and the user browser and Web server, different browsers, the maximum acceptable length is often different, of course, not the same Web server can handle the maximum length of the URL is not the same ability.
The following is a description of the maximum processing power of various browsers and servers.
Microsoft Internet Explorer (Browser)
Internet Explorer has a maximum URL limit of 2,083 characters, and if this number is exceeded, the submit button has no response.
Firefox (Browser)
The length of the Firefox browser URL is limited to 65,536 characters, but when I test, the maximum processing time is 8,182 characters, because the length of the URL is limited by the Web server in addition to the browser restrictions.
Safari (Browser)
The maximum URL length is limited to 80,000 characters.
Opera (Browser)
The maximum URL length is limited to 190,000 characters.
Google (Chrome)
Once the URL length exceeds 8,182 characters, the following server error occurs:
Wrote
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)
Can accept a maximum URL length of 8,192 characters.
Microsoft Internet Information Server (IIS)
The maximum URL that can be accepted is 16,384 characters long.
Through the above data, in order to allow all users to browse normally, our URL should not exceed the maximum length of IE limit (2038 characters), of course, if the URL is not directly provided to the user, but rather to the program calls, the length of the side is only affected by the Web server.
Some friends may take it for granted that if the maximum length is limited to 2038 characters, is it possible to pass about 1000 or so of Chinese characters in a parameter. In fact, this is not true, for the transmission of Chinese, will eventually be urlencode after the encoding of the form of transmission, if the browser encoding is UTF8, a Chinese character after the final encoding of the length of 9 characters.
---------------------URL length is too long, you can use the form submission method
URL value problem, the length of the URL of different browser requirements