HTTP代理,隧道,网关有什么区别? [英] what's distinction of HTTP proxy, tunnel, gateway?

查看:847
本文介绍了HTTP代理,隧道,网关有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,
我看到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?

谢谢。

推荐答案

以下答案是根据 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:


请求在内部提供或通过传递,
可能的翻译,到其他服务器。

它本质上可能改变通过它传递的请求或响应。

It essentially may alter the request or response that get passed through 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.

隧道就像一根管子,每端都有一个点。中间程序或服务器不知道此连接。此隧道可以由HTTP请求启动。当任一端点决定丢弃隧道时,隧道将被删除。

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.

这篇关于HTTP代理,隧道,网关有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆