Author | Topic: FTPClient, passive transfers | |
---|---|---|
S.Slavic | FTPClient, passive transfers on Tue, 11 Mar 2008 16:19:09 +0100 Is it possible? To come across firewall. TIA | |
Andreas Gehrs-Pahl | Re: FTPClient, passive transfers on Tue, 11 Mar 2008 18:17:04 -0400 Slavko, >Is it possible? >To come across firewall. ASINet is completely useless for FTP -- at least IMNSHO! You can't even retrieve a directory listing, and it is (virtually) impossible to do any extending or sub-classing of the "FTPClient()" class, as there is no (documented) access to any underlying sockets or even a basic command sending feature. You need to get either Marshall Software's FTP Client Engine FCE32 or you could use Xb2Net's "XbFTPClient()" class. Both have some advantages and some disadvantages, so I use them both. FCE32 is function-based, so you have to write your own FTP-Client Class, if you like to use OOP, but it works well and has all the features that you might need. It only supports un-encrypted standard FTP, though. Xb2Net has a well documented FTP Client Class and supports both standard FTP as well as FTPS (Secure FTP) -- it doesn't support SFTP (Secure Shell File Transport), though. The main disadvantage of Xb2Net is that it still doesn't support Append Mode (which FCE32 handles just fine). There are also some other minor issues, but all of them can be worked around. Both add-on products support passive mode, and if you do not need Append Mode -- or if you need to use FTPS -- I would recommend you get Xb2Net. It also comes with a bunch of other features, including functions and classes to manipulate Sockets, as well as fully fledged HTTP, HTTPS, and SOAP Client and Server classes, and much more. It's quite a bit more expensive than FCE32, but it's well worth it! -- Andreas --- --- Andreas Gehrs-Pahl E-Mail: GPahl@CharterMI.net 415 Gute Street or: Andreas@DDPSoftware.com Owosso, MI 48867-4410 or: Andreas@Aerospace-History.net Tel: (989) 723-9927 Web Site: http://www.Aerospace-History.net --- --- | |
Thomas Braun | Re: FTPClient, passive transfers on Wed, 12 Mar 2008 09:44:13 +0100 S.Slavic wrote: > Is it possible? > To come across firewall. > TIA In addition to what Andreas wrote, you might consider using a scriptable, external FTP-Client like WinSCP (which is free and supports secure connections as well). Creating a transfer script via fwrite() or memowrit() and call WinSCP with the appropriate parameters. Thomas | |
S.Slavic | Re: FTPClient, passive transfers on Wed, 12 Mar 2008 14:41:47 +0100 Thanks Andreas, Thomas. I am trying now to transfer with (PUTTY) pscp.exe, seems to work: RunShell('/C '+cWrkDir+'pscp.exe -l username -pw password files... server:.',,.T.,.F.) Would like to avoid DOS Window. G. Thomas Braun wrote: > S.Slavic wrote: > > > Is it possible? > > To come across firewall. > > TIA > > In addition to what Andreas wrote, you might consider using a scriptable, > external FTP-Client like WinSCP (which is free and supports secure > connections as well). > > Creating a transfer script via fwrite() or memowrit() and call WinSCP with > the appropriate parameters. > > Thomas |