How can I configure HTTPClient to authenticate against a SOCKS proxy?

前端 未结 5 1300
死守一世寂寞
死守一世寂寞 2021-01-03 04:39

I need to set up proxy authentication against a SOCKS proxy. I found out this post giving instructions that appear to work with common HTTP proxies.

                 


        
5条回答
  •  说谎
    说谎 (楼主)
    2021-01-03 04:50

    I tried

    System.setProperty("socksProxyHost", "socks.xyz.com");
    System.setProperty("socksProxyPort", "1000");
    

    and it's working fine.

提交回复
热议问题