Description of the HTTP protocol's URI length, POST data length, and COOKIE length restrictions, and uricookie
1. URL length limit
2. length limit of Post Data
3. Cookie length limit
IE: 2803
Firefox: 1, 65536
Chrome: 1, 8182
Safari: 80000
Opera: 1, 190000
For get requests, there is no limit on the number of request parameters within the url length limit.
2. length limit of Post Data
The length limit of Post data is similar to the url length limit. It is also not specified in the Http protocol. The length limit can be achieved by configuring the maximum length of http request headers on the server side.
Post and get misunderstandings
3. Cookie length limit
The Cookie length limit is summarized in the following aspects.
(1) the maximum number of cookies allowed by the browser in each domain is not tested by yourself. The information found on the internet is probably like this.
IE: 20, and then 50
Firefox: 50
Opera: 30
Chrome: 180
Safari: Unlimited
When the number of cookies exceeds the limit, the browser's behavior: IE and Opera will use the LRU algorithm to clear old infrequently used cookies, and Firefox will randomly kick out some cookies. Of course, no matter what the policy or try not to make the number of cookies exceed the permitted range of the browser.
(2) Maximum length of each Cookie allowed by the browser
Firefox and Safari: 4079 bytes
Opera: 4096 bytes
IE: 4095 bytes
(3) restrictions on the length of Http request headers on servers. The Cookie is attached to the http request header and sent to the server. Therefore, it is also affected by the length of the server request header.