curl-users
Re: Specifying a port and passive ftp
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 1 Aug 2003 09:57:25 +0200 (CEST)
Date: Fri, 1 Aug 2003 09:57:25 +0200 (CEST)
On Fri, 1 Aug 2003, Derek Goring wrote:
> Earlier, I asked about passive ftp and found that it is the default with
> curl unless one uses the -P option. But what if I want passive ftp AND I
> need to specify a port number. How can I do that?
>
> To be specific, I need to connect to Port 8021, but using -P 8021 puts curl
> into active mode and the server won't accept that. Is there a way around
> it?
You mean like 'curl ftp://machine.com:8021/' or do you mean the port number
that curl connects to when setting up the transfer connection after PASV was
issued? That second port number is strictly controlled by the server and
cannot be affected by the client.
-- Daniel Stenberg -- curl: been grokking URLs since 1998 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01Received on 2003-08-01