You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by da...@aol.com on 2016/08/25 01:31:51 UTC
Binding httpclient to a network interface
My computer has two network cards. How can I force HttpClient to use one of them? I am using HttpClient 4.5.2
RE: Binding httpclient to a network interface
Posted by Yossi Tamari <yo...@yossi.at>.
Use HttpClientBuilder.setDefaultRequestConfig: https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/client/HttpClientBuilder.html#setDefaultRequestConfig(org.apache.http.client.config.RequestConfig).
With RequestConfig.Builder.setLocalAddress https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/config/RequestConfig.Builder.html#setLocalAddress(java.net.InetAddress).
-----Original Message-----
From: davidjesse091@aol.com [mailto:davidjesse091@aol.com]
Sent: 25 August 2016 04:32
To: httpclient-users@hc.apache.org
Subject: Binding httpclient to a network interface
My computer has two network cards. How can I force HttpClient to use one of them? I am using HttpClient 4.5.2
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org