what's distinction of HTTP proxy, tunnel, gateway? [closed]

混江龙づ霸主 提交于 2019-12-21 06:59:42

问题


all, I see the terms from RFC 2616. http://www.w3.org/Protocols/rfc2616/rfc2616-sec1.html#sec1

But I can't understand the distinction of the proxy, tunnel and gateway? Can anyone give me a simple explanation of them?

Thanks.


回答1:


The answer below is explained based on the definition found in RFC 2616

Proxy and server have definitions which use the word program. Whereas, for a gateway it does not. That is one of the distinctions you should notice.

Try to compare a proxy and a gateway by their handling of a request. For a proxy:

"Requests are serviced internally or by passing them on, with possible translation, to other servers."

It essentially may alter the request or response that get passed through it.

The gateway definition specifies that it:

"acts as an intermediary for some other server. Unlike a proxy, a gateway receives requests as if it were the origin server for the requested resource; the requesting client may not be aware that it is communicating with a gateway."

So, gateway in this context pretty much receives and delivers whatever goes through it.

A tunnel is like a tube with a point at each end. The intermediate program or server is not aware of this connection. This tunnel can be initiated by an HTTP request. The tunnel will be removed when either endpoint decides to drop the tunnel.



来源:https://stackoverflow.com/questions/10377679/whats-distinction-of-http-proxy-tunnel-gateway

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!