例子:登陆失败后重新返回登陆页面
第一次请求就是客户端发来的HTTP的请求,http://localhost:8080/day13/login.jsp的请求
服务器的sendRedirect方法对请求发出响应,响应头中有重定向的地址http://localhost:8080/day13/login.jsp 这也就是重定向为什么可以写绝对路径
第二次是客户端浏览器接受到这个响应后,会自动发送一个请求到http://localhost:8080/day13/login.jsp ,它与第一个请求是没关系的,因此也不会有携带第一个请求的信息。
响应头中的Location