cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Ignore DNS

From: Rogerio Saran <rsaran_at_organox.com.br>
Date: Wed, 12 Jun 2002 14:49:10 -0300

You do it in two steps:

1. compose a new URL, placing the machine IP address in place of the DNS
hostname.

2. Add a header "Host: www.mysite.com" to the request.

And you are done.

Warrick FitzGerald wrote:
> Hi All,
>
> I very often would like to make a request to a specific IP Address, but keep
> the host header etc exactly as if curl had done the lookup via DNS.
>
> For eample if I have 3 web servers behind a load ballancer, I would like to
> be able to make a request directly to Machine1's private address, with excly
> the same header as if it had resolved to the LoadBallanced IP.
>
> Is it possible to do something like curl www.mysite.com --user-this-ip
> 10.10.10.5 ?
>
> Thanks
> Warrick FitzGerald
>
>
>
> _______________________________________________________________
>
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
>
>
>

_______________________________________________________________

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
Received on 2002-06-12