1.HTTP英文全称
HTTP(hypertext transport protocol):超文本传输协议,该协议详细规定了浏览器和万维网之间互相通信的规则与格式。
2.客服端向服务器发送请求格式
-
行:POST/GET HTTP/1.1
-
头:
HOST:xxxx
Cookie:xxxx
Content-type:xxxx -
空行
-
体: ?xxxx=xxxx&xxxx=xxxx
3.服务器根据请求返回的相应格式
- 行 HTTP/1.1 200 OK
- 头
Content-type:text/html;charset=utf-8
Content-length:2048
Content-encoding:gzip - 空行
- 体
<html>
<body>
<h1>博客笔记</h1>
</body>
</html>