Skip to content

Commit 421f84f

Browse files
authored
get和post请求实际上是没有区别?
1 parent f893ac1 commit 421f84f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Java相关/J2EE基础知识.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ Servlet接口定义了5个方法,其中**前三个方法与Servlet生命周期
6666
参考:《javaweb整合开发王者归来》P81
6767

6868
## get和post请求的区别
69+
70+
> 网上也有文章说:get和post请求实际上是没有区别,大家可以自行查询相关文章!我下面给出的只是一种常见的答案。
71+
6972
①get请求用来从服务器上获得资源,而post是用来向服务器提交数据;
7073

7174
②get将表单中数据按照name=value的形式,添加到action 所指向的URL 后面,并且两者使用"?"连接,而各个变量之间使用"&"连接;post是将表单中的数据放在HTTP协议的请求头或消息体中,传递到action所指向URL;

0 commit comments

Comments
 (0)