cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: binding source ip

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Wed, 17 Aug 2011 03:34:50 -0500

On Wed, Aug 17, 2011 at 2:52 AM, Yoav Einav wrote:

> I would like to run multiple session, whereas in each session (for all
> requests)  I'd like to bind the socket to a different source IP.

> Assuming of course my machine has a range of IPs.

It sounds like you want CURLOPT_INTERFACE:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTINTERFACE

 - Jeff

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-17