cURL / Mailing Lists / curl-users / Single Mail


RE:make curl connect to a given IP/vhost?

From: NIJSSEN <>
Date: Tue, 07 Sep 2010 17:28:15 +0200

On 07/09/10, Tomasz Chmielewski <> wrote:
I'm running a geo-ip web cache system.

Assuming I have a domain configured, DNS replies with a different IP, depending on who asks (i.e. location in US would get a address, location in Europe would get a address, and so on).

Now, I'd like to monitor if each of the caches replies with correct content (i.e. a given page contains a given string).

Can I somehow make curl connect to a given remote IP and fetch a given vhost?

I'm thinking in something in the line of:

curl --remote-ip
curl --remote-ip

Is something like this possible with curl? I checked the manual, but I didn't find an option which would be similar in functionality.

If your client system supports multiple interfaces, you could perhaps use the --interface <name> option to make cURL use a specific network interface to connect to your server? According to the manual (, <name> could also be an IP-address.

Have fun using cURL!

Kees Nijssen

List admin:
Received on 2010-09-07