cURL / Mailing Lists / curl-library / Single Mail


RE: CURLOPT_LOCALPORT option broken ?!

From: Senthil Raja Velu <>
Date: Mon, 23 Feb 2009 14:35:26 -0800

Thanks Dan!
I tried but it failed and trying to get more info as requested by Marcus
to understand why the fix didn't work for me.


-----Original Message-----
[] On Behalf Of Daniel Stenberg
Sent: Friday, February 20, 2009 1:40 PM
To: libcurl development
Subject: RE: CURLOPT_LOCALPORT option broken ?!

On Fri, 20 Feb 2009, Senthil Raja Velu wrote:

> I am not clear about the patch
> Do I need to use both the interface and port all the time and should
not use
> any one of those alone.

> In that case, if at all I have to use only the port, could I set the
> interface as "" as a work-around for ADDR_ANY. Please clarify.

The patch should not alter any requirements or API, it should just make
previously didn't work (CURLOPT_INTERFACE + CURLOPT_LOCALPORT) function
properly and as you expected.

Thus the code you showed that failed before should run now with this

Received on 2009-02-23