如何在小程序中使用代理建立持久连接?**
使用 URLConnection 会完成所有工作吗?
我知道我的要求很笼统,但我很想知道任何想法。
根据这篇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).
这是真的吗?代理服务器是否有所有 http 连接都是非持久性的一般规则?
那么这是否意味着如果一个人试图通过代理(不支持 socks )建立持久连接只能通过 https 连接来完成?
最佳答案
连接被拒绝通常意味着没有服务在您尝试连接的端口上监听。您可以从运行该小程序的机器访问该地址/端口吗?端口是否在服务器的防火墙中开放?
关于java - 如何在 java 签名的小程序中进行代理隧道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5922347/