检查代理连接
我需要发送什么到代理服务器(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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
两种代理协议均不提供该功能。无法查询代理以查看它连接到哪个服务器,或者它是否仍然连接到服务器。如果您告诉它连接到服务器,那么只要您与代理有有效的连接,您就必须假设它始终连接到该服务器。如果代理失去与服务器的连接,则需要关闭与客户端的连接。
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.