I would like to know how HTTP tunnels work. I tried Google but didn't find what I was looking for.
As far as I know HTTP proxies are like reverse proxys. You request a website, HTTP proxy gets and understands this request and sends it to the origial server. Answer goes from original server to HTTP proxy and back to your PC. Other than SOCKS proxy which just tunnel TCP/IP, a HTTP proxy reads the HTTP-Request, right?
If that is right, here is my question:
How can you tunnel other protocols through an HTTP proxy? E.g. Instant Messengers offer such proxy settings and they use their own protocol.
Best Answer
Besides the usual
GET
/POST
/HEAD
/PUT
, many HTTP proxy servers understand an additionalCONNECT
request, which establishes a raw TCP connection to the remote host. This is required to properly support HTTPS, but can often be used for other protocols.