3 ms·
Features like the "Host" header and built in support for proxies are important to the infrastructure of the web, I believe websockets are an attempt to preserve
by jimmyjazz14 16y ago
Features like the "Host" header and built in support for proxies are important to the infrastructure of the web, I believe websockets are an attempt to preserve these feature among others while allowing a socket like connection. This idea seems supported by the fact that Websockets use an intial handshake over HTTP which allows the same server that handles HTTP request to handle websocket request.
- adamzochowski 16y agoExcept for ssl the header is encrypted. so you can't use Host header on ssl proxy. This is where HTTP CONNECT comes in. Connect is a second header that tells proxy on how to proxy, and then the rest of connection is raw (to preserve secure actual request header).