http push - 使用 ssl 的 http 流媒体方法 - 代理会干扰 https 流量吗?

标签 http ssl streaming long-polling server-push

我的问题是关于实现HTTP Server Push的HTTP Streaming Method:

The "HTTP streaming" mechanism keeps a request open indefinitely. It never terminates the request or closes the connection, even after the server pushes data to the client. This mechanism significantly reduces the network latency because the client and the server do not need to open and close the connection.

The HTTP streaming mechanism is based on the capability of the server to send several pieces of information on the same response, without terminating the request or the connection. This result can be achieved by both HTTP/1.1 and HTTP/1.0 servers.

The HTTP protocol allows for intermediaries (proxies, transparent proxies, gateways, etc.) to be involved in the transmission of a response from server to the client. There is no requirement for an intermediary to immediately forward a partial response and it is legal for it to buffer the entire response before sending any data to the client (e.g., caching transparent proxies). HTTP streaming will not work with such intermediaries.

如果我使用 HTTPS,是否可以避免代理服务器所描述的问题?

最佳答案

HTTPS 不使用 HTTP 代理——这会使安全无效。 HTTPS 连接可以通过一些 HTTP 代理或只是 HTTP 重定向器使用 HTTP CONNECT 命令路由,它建立到目标主机的透明隧道。这个隧道对代理是完全不透明的,代理无法知道传输了什么(它可以尝试修改数据流,但 SSL 层会检测到修改并发送警报和/或关闭连接),即什么有已通过 SSL 加密。

更新:对于您的任务,您可以尝试使用 NULL 密码套件之一(如果服务器允许)来减少操作的数量,例如不执行加密、匿名 key 交换等(这不会影响代理不可能更改您的数据)。

关于http push - 使用 ssl 的 http 流媒体方法 - 代理会干扰 https 流量吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4707267/

相关文章:

ssl - 如何获取用于 SSL 握手的证书?

ssl - 无法通过 cqlsh 连接 ssl 节点

java - 使用 RTMPT 时 Red5 几秒钟后崩溃

ios - 亚马逊 MWS 产品 API 返回 401 错误 "Access denied"

php - 在重定向到安全服务器 (ssl) 以防数据量很大时, session 丢失

c# - ASP.NET 回发和 URL

rabbitmq - RabbitMQ 或 Kafka 适合实时仪表板应用程序吗?

javascript - JWplayer 6 和图像叠加视频的奇怪问题

cloudfront 返回的 HTTP 代码 0

带有 React 的 ASP.NET Core - 431 请求 header 太长