Skip to content
Advertisement

https proxy using okhttp3

I am using okhttp3 and trying to see how do I pass userId & pswd to authenticate with proxy server that accepts only HTTPS protocol. I already saw exmaple over SO & on other sites(link below) but they don’t have HTTPS protocol.

https://botproxy.net/docs/how-to/okhttpclient-proxy-authentication-how-to/

Can anyone please tell me how to use HTTPS protocol to call proxy server?

Advertisement

Answer

It is not officially supported but there is a workaround.

https://github.com/square/okhttp/issues/6561

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement