How to use HttpClientBuilder with Http proxy?

前端 未结 3 1168
春和景丽
春和景丽 2020-12-31 08:37

I am trying to set proxy for a request I am making using HttpClientBuilder as follows:

        CredentialsProvider credsProvider = new BasicCred         


        
3条回答
  •  天命终不由人
    2020-12-31 09:17

    I think the problem is with your HttpClient, not the proxy. Did you try to create your HttpClient by using HttpClientBuilder.build()

    HttpClient client = builder.build();
    

提交回复
热议问题