1.http(hypertext transport protocol)协议【超文本传输协议】,协议详细规定了浏览器和万维网服务器之间相互通信的规则
2.请求报文(重点是格式与参数)
在浏览器中会将我们的请求体封装好在发送给服务器
行 POST /s?ie=utf-8 HTTP/1.1(协议的版本号)
头 Host:atguigu.com
Cookie:name=guihu
Content-type:application/x-www-form-urlencoded
User-Agent:chrome 83
空行
体 username = admin&password=admin
3.响应报文
行 HTTP/1.1 200(状态码) OK
头 Content-type:text/html;charset=utf-8
Content-length:2048
Content-encoding:gzip
空行
体 <html> <head><body>
<h1>百事可乐</h1>
</body></head></html>