我的问题是关于实现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/