u
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.
RFC 2616, "Hypertext Transfer Protocol -- HTTP/1.1," does not specify any requirement for URL length.
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.
RFC 2616, "Hypertext Transfer Protocol -- HTTP/1.1," does not specify any requirement for URL length.
1、ie对post请求和get请求的url有限制,都是2048个字符;
2、http协议并未对url长度做限制;
get请求和post请求的区别:
1、
Get方式在通过URL提交数据,数据在URL中可以看到;POST方式,数据放置在HTML HEADER内提交;
2、
get传送的数据量较小,不能大于2KB。post传送的数据量较大,一般被默认为不受限制。
3、
get安全性非常低,post安全性较高。但是执行效率却比Post方法好。