method="get/post",两种方式的区别
来源:互联网 发布:灰原穷 知乎 编辑:程序博客网 时间:2024/06/06 10:54
method=”get/post”,两种方式的区别
Form中的get和post方法,在数据传输过程中分别对应了GET和POST方法。
二者主要区别如下:
1、Get将表单中数据的按照variable=value的形式,添加到action所指向的URL后面,并且两者使用“?”连接,而各个变量之间使用“&”连接;Post是将表单中的数据放在form的数据体中,按照变量和值相对应的方式,传递到action所指向URL。
如下形式:
http://www.imooc.com/test.asp?name=lilian&password=12345678
2、Get是不安全的,因为在传输过程,数据被存放在请求的URL地址中,这样就可能会有一些隐私的信息被第三方看到。
3、Get方式传输的数据量非常小,一般限制在 2KB 左右,但是执行效率却比 Post 方法好;而 Post 方式传递的数据量相对较大,它是等待服务器来读取数据,不过也有字节限制,这是为了避免对服务器用大量数据进行恶意攻击,根据微软方面的说法,微软对用 Request.Form()可接收的最大数据有限制,IIS4中为 80KB 字节,IIS5 中为 100KB 字节。
综上所述,请尽量用 Post 方法。
0 0
- method="get/post",两种方式的区别
- method="get/post",两种方式的区别
- method="get/post",两种方式的区别
- method="get/post",两种方式的区别
- method="get/post",两种方式的区别
- form属性method="get/post"的两种方式对比
- form属性method=”get/post”的两种方式对比
- GET和POST两种请求方式的区别
- GET和POST两种请求方式的区别
- method=post和method=get的区别
- Form表单中method="post/get'的区别
- Form表单中method="post/get"的区别
- 网页表单中method="post/get"的区别?
- Form表单中method="post/get'的区别
- Form表单中method="post/get'的区别
- Form表单中method="post/get'的区别
- Form表单中method="post/get'的区别
- Form表单中method="post/get'的区别
- 树套树之线段树套线段树(POJ2155 Matrix)
- 《Python编程》笔记(十二)
- Event Handling Guide for iOS--(三)---Event Delivery: The Responder Chain(翻译)
- SMTP与ESMTP的关系和区别
- ios developer tiny share-20160811
- method="get/post",两种方式的区别
- 64位winform程序无法打开设计视图
- OJ------记负均正
- 2016.8.3
- 批量删除
- RunLoop资料
- 安卓启动页和引导页的制作
- 《Python 编程》笔记(十三)
- 在Android中调用浏览器打开网页方式