Closed juanmaloperz closed 6 months ago
hello, If I wan to pass Credentials with Http Apache I will do it like this
CredentialsProvider provider = new BasicCredentialsProvider(); UsernamePasswordCredentials credentials = new UsernamePasswordCredentials("testuser","testPassword"); AuthScope authscp = new AuthScope("test.com", 403); provider.setCredentials(authscp, credentials); CloseableHttpClient client = HttpClientBuilder.create().setDefaultCredentialsProvider(provider).build();
but in the Library I do not see a way to pass the authentication, is there any form? regards
Currently you can pass the builder to one of the constructors so you can setup the auth before calling the client.
hello, If I wan to pass Credentials with Http Apache I will do it like this
but in the Library I do not see a way to pass the authentication, is there any form? regards