okhttp如何支持https代理?

时间:2018-07-13 06:08:52

标签: java https proxy okhttp

enter image description here

我想支持HTTPS代理,使用ProxyType.HTTP并将socketFactory设置为SSLSocketFactory。
但是发现跟随问题:

  

javax.net.ssl.SSLHandshakeException:SSL握手已中止:ssl = 0xd33088c0:系统调用期间发生I / O错误,对等方重置了连接

现在我想知道如何设置okhttpClient使其支持https代理吗?

0 个答案:

没有答案
相关问题