I am trying to set proxy for a request I am making using HttpClientBuilder as follows:
HttpClientBuilder
CredentialsProvider credsProvider = new BasicCred
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();