cURL / Mailing Lists / curl-users / Single Mail

curl-users

how to change ip - domain bindings manually?

From: Saberhagen Nathan <dualspace_at_gmail.com>
Date: Fri, 13 Apr 2007 19:05:02 +0900

Hello.

I want to confirm for a specific url acts properly using curl, i.e,

curl http://www.something.com/testpage.html

But, www.something.com has been clustered; several ip addresses are assigned
for the url.

I have been done this feature by editing /etc/hosts per a curl execution;
1. set /etc/hosts 111.111.111.111 www.something.com and execute curl...
2. set /etc/hosts 111.111.111.112 www.something.com and execute curl...
3. set /etc/hosts 111.111.111.113 www.something.com and execute curl...

seems something stupid,

Does curl have such a feature that explicitly specify an ip address for a
url?
Received on 2007-04-13