ITPub博客

首页 > IT职业 > IT生活 > javaweb get方式提交数据

javaweb get方式提交数据

IT生活 作者:snoopyzjs 时间:2021-09-09 09:06:35 0 删除 编辑
GET /webday01/index.jsp HTTP/1.1 -- 请求首行

Host: localhost:8080 -- 请求头
Connection: keep-alive
Cache-Control: max-age=0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36
Upgrade-Insecure-Requests: 1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
DNT: 1
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.8
Cookie: JSESSIONID=F82B7398BC2530306D432EA0C32471CE

空行
请求体

localhost:8080/webday01/index.jsp

get 方式:没有请求体,参数放在url中
post 方式:更安全,参数放在请求体中。

HTTP/1.1 200 OK -- 响应的首行
Server: Apache-Coyote/1.1  -- 响应的头
Content-Type: text/html;charset=UTF-8
Content-Length: 212
Date: Tue, 10 Oct 2017 08:31:57 GMT
空行
响应体

  
$Title$

this is my first jsp

这是我的第一个jsp页面

Tue Oct 10 16:31:57 CST 2017

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1414/viewspace-2808121/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-04-15

  • 博文量
    104
  • 访问量
    1015