Alaska Software Inc. - Secure FTP libraries
Username: Password:
AuthorTopic: Secure FTP libraries
Brent Dubs Secure FTP libraries
on Mon, 14 May 2012 16:28:39 -0500
Does anyone know of a FTP library for Xbase++ that supports SSH, SFTP, 
or FTPS?  I am currently using the FTP4W32 library. I also have the 
MarshallSoft library which supports S/Key, but not any of the above.

Thanks,
-Brent
Regan CawkwellRe: Secure FTP libraries
on Tue, 15 May 2012 10:08:42 +0100
Hi Brent

Have a look at the Chilkat FTP ActiveX control:

http://www.chilkatsoft.com/ftp-2-activex.asp

It's not free I'm afraid but it should do what you want.  I believe 
Roger Donnay has used it successfully for FTPS.

Regan

On 14/05/2012 22:28, Brent Dubs wrote:
> Does anyone know of a FTP library for Xbase++ that supports SSH, SFTP,
> or FTPS? I am currently using the FTP4W32 library. I also have the
> MarshallSoft library which supports S/Key, but not any of the above.
>
> Thanks,
> -Brent
Thomas Braun
Re: Secure FTP libraries
on Tue, 15 May 2012 14:46:50 +0200
Brent Dubs wrote:

> Does anyone know of a FTP library for Xbase++ that supports SSH, SFTP, 
> or FTPS? 

I'm not using a library but WinSCP which is a free FTP client with
scripting capabilities.

In one of my applications I first create a script file...

LOCAL oFile := tFile():New('..\upload.scp')

TEXT INTO cTemplate WRAP
option batch on
option confirm off
option synchdelete off
open <profilename>
ENDTEXT

   cTemplate += CRLF + 'put D:\wwwroot\hp10\' + cId + '\*.ll /Alaska/hp2/' + cId + "/" + CRLF
   cTemplate += CRLF + 'put D:\wwwroot\hp10\' + cId + '\forms.* /Alaska/hp2/' + cId + "/" + CRLF + 'exit' + CRLF

   IF oFile:Create()
      oFile:Write(cTemplate)
      oFile:Close()
   ENDIF

...and then call WinSCP via RunShell with the name of the script as a
parameter:

xRet :=  RunShell( "/console /log=D:\wwwroot\hp2\winscp_session.log /script=D:\wwwroot\hp10\upload.scp",  "C:\Program Files (x86)\WinSCP\WinSCP.exe" )

Works as expected, but you need to set up the neccesary sever profile (url,
username  password  public key etc... in WinSCP first which is then used
via the "open" script command

Thomas
Boris BorzicRe: Secure FTP libraries
on Tue, 15 May 2012 14:54:41 +0200
Brent Dubs <bdubs@vanityshops.com> wrote in news:ce3d576$1feed31f
$500b@news.alaska-software.com:

> Does anyone know of a FTP library for Xbase++ that supports SSH, SFTP, 
> or FTPS?  I am currently using the FTP4W32 library. I also have the 
> MarshallSoft library which supports S/Key, but not any of the above.

Xb2.NET supports FTPS (native Xbase++, no ActiveX needed)

You can try it free, send email to demo@xb2.net

Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Brent Dubs Re: Secure FTP libraries
on Tue, 15 May 2012 12:00:31 -0500
Ok, a "duh" moment for me. Thank you Boris, I have Xb2.NET, I just never 
used it for that. Thanks!

-Brent


Boris Borzic wrote:
> Brent Dubs <bdubs@vanityshops.com> wrote in news:ce3d576$1feed31f
> $500b@news.alaska-software.com:
> 
> 
>>Does anyone know of a FTP library for Xbase++ that supports SSH, SFTP, 
>>or FTPS?  I am currently using the FTP4W32 library. I also have the 
>>MarshallSoft library which supports S/Key, but not any of the above.
> 
> 
> Xb2.NET supports FTPS (native Xbase++, no ActiveX needed)
> 
> You can try it free, send email to demo@xb2.net
>
Thomas Braun
Re: Secure FTP libraries
on Fri, 18 May 2012 15:12:16 +0200
Brent Dubs wrote:

> Ok, a "duh" moment for me. Thank you Boris, I have Xb2.NET, I just never 
> used it for that. Thanks!

ROFL - thats exactly what I tought as well... I also have Xb2.NET, but did
never realise that I could use it to do SFTP transfers...
Boris BorzicRe: Secure FTP libraries
on Fri, 18 May 2012 16:37:34 +0200
Thomas Braun wrote in news:10ji335p2druv.k09fjwspu82f.dlg@40tude.net:

> I also have Xb2.NET, but did never realise that I could use it to do
> SFTP transfers 

Not SFTP (SSH File Transfer Protocol) but rather FTPS (FTP over SSL). 
There is a big difference in the two protocols.

Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools
Thomas Braun
Re: Secure FTP libraries
on Tue, 22 May 2012 08:37:18 +0200
Boris Borzic wrote:

> Thomas Braun wrote in news:10ji335p2druv.k09fjwspu82f.dlg@40tude.net:
> 
>> I also have Xb2.NET, but did never realise that I could use it to do
>> SFTP transfers 
> 
> Not SFTP (SSH File Transfer Protocol) but rather FTPS (FTP over SSL). 
> There is a big difference in the two protocols.

Ok, thanks for the clarification - FTPS is what I'm using now. 

In the past I used SFTP by installing cygwin on my windows servers and used
WinSCP as the client.

Thomas
Brent Dubs Re: Secure FTP libraries
on Tue, 15 May 2012 12:01:06 -0500
Thanks all for the replies!

-Brent



Brent Dubs wrote:

> Does anyone know of a FTP library for Xbase++ that supports SSH, SFTP, 
> or FTPS?  I am currently using the FTP4W32 library. I also have the 
> MarshallSoft library which supports S/Key, but not any of the above.
> 
> Thanks,
> -Brent
Simon WhiteRe: Secure FTP libraries
on Tue, 12 Jun 2012 15:53:56 -0400
You can use the free windows version of lftp

http://dl.dropbox.com/u/10484913/LFTP/lftp423win-ssh.7z

This has been compiled with OpenSSL libraries so it supports 
FTPS,FTPES,SFTP,FTP etc.

Simon


On 14/05/2012 5:28 PM, Brent Dubs wrote:
> Does anyone know of a FTP library for Xbase++ that supports SSH, SFTP,
> or FTPS? I am currently using the FTP4W32 library. I also have the
> MarshallSoft library which supports S/Key, but not any of the above.
>
> Thanks,
> -Brent