New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProxyHandler处理https失败 #476
Comments
贴下代码、 |
就是README中的示例代码。 因为本机80端口无法使用,我指定了特定端口,比如8666,VpnService有个setHttpProxy的Api,使用VPN给整个手机设置http代理。测试发现:全都会走到ProxyHandler中进行处理,http的url显示正常,https的URL被重定向无法显示,比如百度、京东等知名网站。 |
@yanzhenjie |
抱歉回复太迟了,还是留一些信息吧:1.demo.com可能内网没有解析,所以可以先用ip代理试试。假设: AndServer.proxyServer()
.addProxy("192.168.1.11", "https://www.baidu.com")
.port(8111)
.build()
.startup(); 那么访问地址应该是: |
访问https网站返回301、302等重定向状态码,我怀疑是AndServer内部没有处理重定向,我需要看源码确认一下。 |
使用反向代理,譬如将
https://www.baidu.com 转发到 http://192.168.1.1 上,
发现https的url,ProxyHandler中处理出来的outResponse均是400、301、302。
The text was updated successfully, but these errors were encountered: