cURL / Mailing Lists / curl-users / Single Mail

curl-users

Question about curl --interface

From: <mark-wade_at_comcast.net>
Date: Thu, 17 Mar 2011 20:39:38 +0000 (UTC)

Hello,

I have simple question about curl. I am trying to understand what command in curl I am look at.

curl --interface "10.10.10.1." foo.com

From reading the curl man page I understand that the --interface is telling curl to use the interface specified to perform a specific operation.  In the example above I replaced the actual IP with the 10. non-routable IP, and replaced the real domain with foo.com.  What would be the purpose of setting the interface, which I am assuming is being designated by the IP address instead of the interface name (eth0). 

One last peace of info, the domain foo.com does not belong to the fake IP I supplied.

Thanks

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-17