![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web
is Mr.Chen
这个作者很懒,什么都没留下…
展开
-
get和post请求的区别
①get请求用来从服务器上获得资源,而post是用来向服务器提交数据; ②get将表单中数据按照name=value的形式,添加到action 所指向的URL 后面,并且两者使用"?“连接,而各个变量之间使用”&"连接;post是将表单中的数据放在HTTP协议的请求头或消息体中,传递到action所指向URL; ③get传输的数据要受到URL长度限制(最大长度是 2048 个字符);而po...转载 2019-07-17 14:59:12 · 101 阅读 · 0 评论 -
转发(Forward)和重定向(Redirect)的区别
转发是服务器行为,重定向是客户端行为。 转发(Forward) 通过RequestDispatcher对象的forward(HttpServletRequest request,HttpServletResponse response)方法实现的。RequestDispatcher可以通过HttpServletRequest 的getRequestDispatcher()方法获得。例如下面的代码就...原创 2019-07-17 15:05:17 · 94 阅读 · 0 评论