响应头数据 :
HTTP/1.1 200 OK
Server: nginx/1.21.6
Date: Wed, 27 Apr 2022 05:11:46 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/8.1.3
tcp服务接收到浏览器发的请求:
打开浏览器访问监听端口,成功响应
响应报文:
char serverdata[1024] = "HTTP/1.1 200 OK\n"
"Server:Nginx/1.21.6"
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)