cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: --local-port on Win32

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 2 Feb 2006 00:24:44 +0100 (CET)

On Mon, 30 Jan 2006, Gisle Vanem wrote:

> Another variation using '--local-port 22222-22223' says:
>
> * About to connect() to post.bgnett.no port 443
> * Trying 194.54.96.133... Bind to local port 22222 failed, trying next
> * Local port: 22223
>
> I think libcurl is lying here. Using a netstat tool (ActivePorts by
> Sysinternals), doesn't list port 22223 in use. Does OpenSSL allow specifying
> the local port?

It does work on Linux at least. --limit-rate is your friend to make the
transfer *really* slow to give you time to do netstat -tn ;-)

And I tried with HTTPS too, and it works just as good...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-02-02