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

前端 未结 5 1298
死守一世寂寞
死守一世寂寞 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:47

    The Features page of Apache HTTPClient says:

    Transparent connections through SOCKS proxies (version 4 & 5) using native Java socket support.

    With "transparent", I guess they mean that it works without you needing to do anything special. Do you have a SOCKS proxy available somewhere? Can't you just try it out to see if it works?

提交回复
热议问题