hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Feng Jiang" <feng.a.ji...@gmail.com>
Subject Re: Can httpclient fetch a url by given ip without querying dns?
Date Mon, 11 Jun 2007 08:48:45 GMT
Hi Oleg,

Thanks so much, I got it! :)

Best regards,
Feng

On 6/8/07, Oleg Kalnichevski <olegk@apache.org> wrote:
>
> On Fri, 2007-06-08 at 16:18 +0800, Feng Jiang wrote:
> > Hi all,
> >
> > when i use httpclient to fetch a lot of urls, i have already had the ip
> of
> > host for each url. I don't want the httpclient to query dns for its ip,
> > because it will cost a lot of time. So can I explicitly set IP for each
> url?
> >
> >
>
> Yes, you can. Just use IP address in the request url (or by using a
> custom HostConfiguration) and set "http.virtual-host" request parameter
> to the desired DSN name.
>
> Hope this helps
>
> Oleg
>
> > Thanks a lot,
> >
> > Feng
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message