HTTP协议请求步骤

1.客户端识别请求协议http

2.客户端本地host或远端dns识别url对应的ip及端口

3.客户端组装请求参数

4.客户端封装http请求

5.客户端封装tcp请求

6.客户端与服务端建立tcp连接

7.客户端发起http请求

8.服务端返回相应结果

9.关闭链接

你可能感兴趣的:(HTTP协议请求步骤)