Derek Goring | 1 Aug 2003 12:10
Picon
Favicon

Re: Specifying a port and passive ftp

On 1 Aug 2003 at 9:57, Daniel Stenberg wrote:

> 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
> 
> 

Yes, that's exactly what I meant.  Seems obvious now....

Cheers
Derek

-------------------------------------------------------
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/01


Gmane