用网络调试助手模拟服务器端与浏览器交互,希望能应用于用ESP8266搭建web服务器
bug:不支持中文,但肯定有简单的方法解决
--------------------------------------------------内容--------------------------------------------------
HTTP/1.1 200 OK
Date: Sat, 31 Dec 2019 23:59:59 GMT
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello HTTP</title>
</head>
<body>
<h1>One</h1>
<p>one two three yes.</p>
</body>
</html>
--------------------------------------------------解注--------------------------------------------------
HTTP/1.1 200 OK [状态行]
Date: Sat, 31 Dec 2019 23:59:59 GMT [响应头部]
[空行]
<!DOCTYPE html> [响应数据]
<html>
<head>
<meta charset="utf-8">
<title>Hello HTTP</title>
</head>
<body>
<h1>One</h1>
<p>one two three yes.</p>
</body>
</html>
--------------------------------------------------参考资料----------------------------------------------
一次完整的 HTTP 请求与响应涉及了哪些知识:https://juejin.im/entry/58ce00c5ac502e00589b4bde
通俗易懂客户端与服务器端交互原理:https://hejiajunsh.iteye.com/blog/1774356