Network communication
Communication between two computers
1. 网线
multiple computers
1.hub集线器
2.交换机
3.路由器
If you want to go online
1.路由器
2.nat地址转换器,在路由器已经集成
http protocol
1.规则了浏览器与服务器之间的数据传输
delivery method
get post
get 与post对比 get这个方式输入敏感信息的时候不安全
get传输的数据要小1024*2字节
deliver content
1.请求头
主要给服务器请求的路径地址/index.html,给请求的方式get
2.响应头
控制浏览器显示
3.响应体
显示在页面的内容
Format of the response (five stars *****)
1.响应头
空行
响应体
HTTP/1.1 200 OK\r\n \r\n换行
\r\n
响应体数据
status code
200 ok 成功
302 跳转(没有登陆,没有给客户端信息)
404 页面找到
500 服务器出错了
Interaction diagram between browser and server
see below----
functional programming
#一个功能一个函数
Object-Oriented Programming
#相关函数的合集