hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Forcing IP address in HTTP requests
Date Thu, 06 Jun 2013 21:52:42 GMT
On Thu, 2013-06-06 at 23:45 +0200, Sebastiano Vigna wrote:
> On 6 Jun 2013, at 8:56 PM, Oleg Kalnichevski <olegk@apache.org> wrote:
> 
> > What's wrong with using an explicit HttpHost with a resolved address?
> > ---
> > CloseableHttpClient httpClient = HttpClients.createDefault();
> > HttpHost target = new HttpHost("173.194.40.20");
> 
> Ahem... :) Of course. The problem is that somehow when looking for something like this
I thought that HttpHost constructors requiring a String required the same string of the request.
> 
> If I might make a suggestion, having a constructor accepting an InetAddress would make
it very clear that this is not the case when browsing through the API.
> 

Sure. Please raise a JIRA in HttpCore for this enhancement.

https://issues.apache.org/jira/browse/HTTPCORE

Oleg



---------------------------------------------------------------------
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