in reply to "canned" FTP
I second Ovid's suggestion of using Net::FTP. It's a much more elegant solution.
But in any case, I can't say I know everything there is to know about the mechanics of FTP, but it's my understanding that while port 21 is the port used for making ftp connections, port 20 is the "ftp-data" port, unless you're using PASV mode, which is usually the case when FTPing from behind a firewall, etc. Anyhow, I think PASV mode allows the data to travel all on one port, rather than two. How you might go about using sockets to receive the data on ftp-data port 20, I'm not really sure.
But in any case, I can't say I know everything there is to know about the mechanics of FTP, but it's my understanding that while port 21 is the port used for making ftp connections, port 20 is the "ftp-data" port, unless you're using PASV mode, which is usually the case when FTPing from behind a firewall, etc. Anyhow, I think PASV mode allows the data to travel all on one port, rather than two. How you might go about using sockets to receive the data on ftp-data port 20, I'm not really sure.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (Kozz) Re: "canned" FTP
by rob_au (Abbot) on Feb 21, 2002 at 01:15 UTC | |
by PriNet (Monk) on Feb 21, 2002 at 03:33 UTC | |
by petral (Curate) on Feb 21, 2002 at 13:19 UTC | |
Re: (Kozz) Re: "canned" FTP
by PriNet (Monk) on Feb 21, 2002 at 00:21 UTC | |
by gellyfish (Monsignor) on Feb 21, 2002 at 09:53 UTC | |
Re: FTP connections
by jeffenstein (Hermit) on Feb 21, 2002 at 15:04 UTC |
In Section
Seekers of Perl Wisdom