Http的url的长度以及put和post区别


HTTP


web页面中的写法问题:
href=//abc.com/
省掉前面的协议,可根据网页访问协议自适应。



游览器的种类繁多,并且对URL的长度限制是有所差异的,具体如下:


游览器 最大长度(字符数) 备注

Internet Explorer  	2083     	如果超过这个数字,提交按钮没有任何反应
Firefox	65,536	 
chrome	8182	 
Safari 	80,000	 
Opera	190,000	 
curl(linux下指令)	8167


协议


在HTTP中,PUT被定义为idempotent的方法,POST则不是,这是一个很重要的区别。


“Methods can also have the property of "idempotence" in that (aside from error or expiration issues) the side-effects of N > 0 identical requests is the same as for a single request.”


上面的话就是说,如果一个方法重复执行多次,产生的效果是一样的,那就是idempotent的


阅读量: 319
发布于:
修改于: