rip协议java模拟实现:https://blog.csdn.net/leiflyy/article/details/51864801
用telnet尝试访问网站了解底层请求响应
cmd下:telnet www.sohu.com 80 因为telnet默认端口号为25,成功后黑屏
GET /index.html HTTP/1.1
Host:www.sohu.com
两次回车,第一次准备好,第二次请求;
HEAD /index.html HTTP/1.1
Host:www.sohu.com
返回状态行和消息报头,不返回响应正文;
启动tomcat后,访问:
GET / HTTP/1.1
Host:localhost
Connection: Keep-Alive
两次回车
HEAD / HTTP/1.1
Host:localhost
Connection: Close
理解keep-alive与close之间的区别
计算机网络术语
路由:https://baike.baidu.com/item/%E8%B7%AF%E7%94%B1/363497?fr=aladdin
GET/POST
GET请求:只能url?a=1
POST请求:可以url?a=1,也可以body传参;https://www.cnblogs.com/logsharing/p/8448446.html
epoll:https://baike.baidu.com/item/epoll/10738144?fr=aladdin