HTTP简介
HTTP(hypertext transport protocol)协议(超文本传输协议),协议详细规定了浏览器和万维网服务器之间相互通信的规则。
请求报文
行: GET/POST URL hTTP/1.1
头: Host: atguigu.com
Cookie:name=guigu
Content-type: applicaton/x-www-form-urlendcoded
User-Agent: chrome 83
空行
体 username=admin&password=admin
响应报文
行: HTTP 1.1 200 OK
头: Content-type: test/html;charset=utf-8
Content-length:2048
Content-encoding:gzip
空行
体: <html><html>