检查代理连接

发布于 2024-09-18 08:17:49 字数 54 浏览 2 评论 0原文

我需要发送什么到代理服务器(http或socks),它会告诉我它是否连接到我指定它连接的主机。

What do i need to send to a proxy server (http or socks) that will tell me if it is connected to the host i specified it to connect to.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静待花开 2024-09-25 08:17:49

两种代理协议均不提供该功能。无法查询代理以查看它连接到哪个服务器,或者它是否仍然连接到服务器。如果您告诉它连接到服务器,那么只要您与代理有有效的连接,您就必须假设它始终连接到该服务器。如果代理失去与服务器的连接,则需要关闭与客户端的连接。

Neither proxy protocol provides that functionality. There is no way to query a proxy to see what server it is connected to, or whether it is a still connected to a server. If you tell it to connect to a server, then you have to assume it is always connected to that server as long as you have a valid connection with the proxy. If the proxy loses its connection to the server, then it needs to close the connection with your client.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文