如何在java签名的小程序中进行代理隧道
如何在小程序中的代理后面建立持久连接?**
使用 URLConnection 可以完成所有工作吗?
我知道我的要求很笼统,但我非常渴望任何想法。
根据此链接中的文章:
对于 HTTP 请求,代理服务器是 能够解析通信 内容和练习更多 交通管制方面的自由裁量权, 包括在以下位置断开连接 适当的时间(代理服务器 始终假设 HTTP 连接是 非持久性)。
这是真的吗?代理服务器是否有一个通用规则,即所有 http 连接都是非持久的?
那么这是否意味着如果尝试通过代理(不支持socks)建立持久连接只能通过https连接来完成?
how to make persistent connections behind proxy in an applet?**
is Using URLConnection will do all the job?
I know what i am asking is very general but i am desperate for any ideas.
Acording to the article in this link:
For HTTP requests, the proxy server is
able to parse the communication
content and exercise a lot more
discretion on policing the traffics,
including dropping the connection at
the appropriate time (a proxy server
always assumes HTTP connections are
non-persistent).
is it true? is there a general rule for proxy servers that all http connections are non-persistent?
so does this mean that if one is trying to make a persistent connection through proxy(which doesnt supports socks) can only be done via https connection?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
连接被拒绝通常意味着您尝试连接的端口上没有侦听服务。您可以从运行该小程序的计算机访问该地址/端口吗?服务器上的防火墙是否开放该端口?
Connection refused usually means that there is no service listening on the port you are attempting to connect to. Can you access that address/port from the machine that is running the applet? Is the port open in the firewall on the server?
一般来说,代理可能不会验证持久连接。您需要在传递代理的短暂超时后断开并重新连接。
我认为连接 b 失败的原因应该在该区域内搜索(即一般说:因为它是持久连接)。
In General, Proxies may not validate persistent connections. You need to drop and reconnect after some short timeout for passing proxy.
I think the reason of why connection b is failing should be searched within that area (i. e. generaly said: because it is persistent connection).