Re: [twsocket] Using ftpcli.pas

2008-03-09 Thread Dave Coventry
Okay, I think I have it. I was under the impression that TPClient1.OpenAsync did the logging on to the server. It seems that, after calling TPClient1.OpenAsync, the program returns to the FtpClient1RequestDone event three times, first time to deliver the username, the next time to deliver the pas

[twsocket] Using ftpcli.pas

2008-03-09 Thread Dave Coventry
Hi, I'm having difficulty reading from an ftp server. If I initialise my TFTPClient as follows: FTPClient1.UserName:='username'; FTPClient1.Password:=PWD; FTPClient1.HostName:='myftp.uklinux.net'; FTPClient1.Binary:=TRUE; FTPClient1.Passive:=TRUE; FTPClient1.OpenAsync; FTPClient1.L