RT:How HTTP use TCP connection
2015-10-28 14:13
603 查看
In HTTP/0.9 (not used anymore), each request uses a separate TCP connection, and the end of a response is signalled by closing the connection.
In HTTP/1.0, an unofficial but very widely supported "
In HTTP/1.1, persistent connections are the default, and the old single-request behavior has to be requested explicitly.
Optionally requests may be pipelined, though this still has some disadvantages, so multiple (2–5) connections are often used.
HTTP/2 (aka SPDY) was specifically designed to multiplex many requests at the same time.
Resources: Wikipedia article and RFC 2616 section 8.1.
In HTTP/1.0, an unofficial but very widely supported "
Connection: Keep-Alive" request header can be used to request a persistent connection if the server supports it.
In HTTP/1.1, persistent connections are the default, and the old single-request behavior has to be requested explicitly.
Optionally requests may be pipelined, though this still has some disadvantages, so multiple (2–5) connections are often used.
HTTP/2 (aka SPDY) was specifically designed to multiplex many requests at the same time.
Resources: Wikipedia article and RFC 2616 section 8.1.
相关文章推荐
- 深入理解网络技术内幕 阅读笔记(一)
- ios 网络监控-BMReachability
- 关于.net 2.0 remoting 中 TCP Channel 用户认证探讨(一)
- 高效处理网络图片的下载和呈现避免oom报错
- 网络、线程、UI的那点事
- Http 四种请求访问代码 HttpGet HttpPost HttpPut HttpDelete
- http://codeforces.com/contest/34
- tomcat 解析(四)-处理http请求过程
- Xcode7 网络请求报错:The resource could not be loaded because the App Transport Security policy requir
- http://codeforces.com/contest/34
- [备忘]适配Android M 将HttpClient替换为HttpUrlConnection相关资料
- linux配置网卡IP地址命令详细介绍及一些常用网络配置命令
- iOS---升级Xcode 7.0 bata发现网络访问失败
- android实现http中请求访问添加cookie的方法
- TCP/IP协议 三次握手与四次挥手
- 完美解决:Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x
- Wireshark基本介绍和学习TCP三次握手协议
- apacha tomcat https应用
- 制作HTTP服务器端
- 制作HTTP服务器端