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
空行
响应体
<html>
<head>
<title>$Title$</title>
</head>
<body>
<h1> this is my first jsp </h1>
<h1> 这是我的第一个jsp页面</h1>
<h1>
Tue Oct 10 16:31:57 CST 2017
</h1>
</body>
</html>