HttpClient httpClient = HttpClientBuilder.create().setSSLSocketFactory(socketFactory).build();
The HttpClientBuilder cannot be resolved. Anyone any idea how to fix this?
Either download the Apache HttpClient libraries from https://hc.apache.org/downloads.cgi and add the jars to your project or add the maven dependancy:
<dependencies>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5</version>
</dependency>
</dependencies>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With