hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yossi Tamari" <yo...@yossi.at>
Subject RE: Binding httpclient to a network interface
Date Sat, 27 Aug 2016 12:51:24 GMT
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


Mime
View raw message