Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.1.3
-
None
Description
The proxy host within DefaultRequestConfig will be ignored when creating httpAsyncClient and sending request using the following code.
CloseableHttpAsyncClient client = HttpAsyncClients.custom() .setConnectionManager(cm) .setVersionPolicy(HttpVersionPolicy.NEGOTIATE) .setDefaultRequestConfig(RequestConfig.custom().setProxy(proxy).build()) .build(); final SimpleHttpRequest request = SimpleRequestBuilder.get() .setHttpHost(target) .setPath("/") .build(); final Future<SimpleHttpResponse> future = client.execute( SimpleRequestProducer.create(request), SimpleResponseConsumer.create(), HttpClientContext.create(), new FutureCallback<SimpleHttpResponse>() {...});