I\'m currently trying to do multiple HttpGet
requests at the same time with CloseableHttpClient
.
I googled on how to do that and the answer was
Found the answer: https://stackoverflow.com/a/19950935/1223253
Just had to add
Registry<ConnectionSocketFactory> socketFactoryRegistry = RegistryBuilder.<ConnectionSocketFactory> create().register("https", sslsf).build();
and pass socketFactoryRegistry
as parameter to the constructor of PoolingHttpClientConnectionManager
.
Now it works just fine :)