post和get区别
一、两种 HTTP 请求方法:GET 和 POST
GET - 从指定的资源请求数据。
POST - 向指定的资源提交要被处理的数据
二、post和get对应的HTTP报文和URL区别
2.2 GET方法
请注意,查询字符串(名称/值对)是在 GET 请求的 URL 中发送的:
/test/demo_form.asp?name1=value1&name2=value2
2.1 POST 方法
请注意,查询字符串(名称/值对)是在 POST 请求的 HTTP 消息主体中发送的:
POST /test/demo_form.asp HTTP/1.1
Host: w3schools.com
name1=value1&name2=value2
三 对比
参考:传送门