Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Feb : FTP PASV support

www.cryer.info
Managed Newsgroup Archive

FTP PASV support

Subject:FTP PASV support
Posted by:"Mike Margerum" (mi..@junk.com)
Date:Fri, 18 Feb 2005 14:16:17

Hello, I'm building an FTP client using just winsock.  I cant use indy
because I will need to make this run on a palm too and so am writing it
in windows 1st to figure out the FTP protocol.


I am issuing the PASV command and successfully opening the data channel
given the returned PORT.  The first RETR i do works fine and I get the
file successfully .  The second RETR I do causes an FTP response of "425
can't open data connection".  Why am I getting this error?

Do I need to issue some command in between RETR commands?

Do I need to issue a PASV between each RETR and get a new port?  I
believe i tried this and got an error anyway saying that data connection
had already been open.

Thanks for the help,
Mike

Replies:

www.cryer.info
Managed Newsgroup Archive