O7: FTP and SSL

Michael Mantkowski michaelj at clientrax.com
Thu Aug 6 11:26:36 EDT 2020


I think you might have to use cURL to do that.  We do this in Studio 4.3.2.1
since there is no SFTP in that version.

Something like below.

;  Use cURL to SFTP
While lvAttempt<3
Calculate lvAttempt as lvAttempt+1
Calculate lvPath as con(inProgramFolder,'Utilities\cURL\cURL.exe')
Calculate lvCommand as con('-T ',kDq,pvFilePath,kDq,' -u
',pvUserName,':',pvPassword,' -k ',pvDestURL)     ;; -T
/path/to/dir/*(om[1]) -u username:password
sftp://sftp.example.com/remote/dir

Do code method CodeClass/RunProgram (con(lvPath,' 
',lvCommand),1,0) Returns lvReturnedText     ;; No Working Message
Do replaceall(lvReturnedText,chr(10),'^') Returns lvReturnedText
Calculate Success as pos(con(chr(13),'^',chr(13),'100'),lvReturnedText)>0
If Success
Quit method kTrue
Else
Calculate lvReturnedText as con("FILE:  ",pvFilePath,kCr,"URI:
",pvDestURL,kCr,"OUTPUT:",kCr,lvReturnedText)
Copy to clipboard lvReturnedText
Quit method kFalse
End If
End While
;  Error
Quit method kFalse

*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************


-----Original Message-----
From: omnisdev-en On Behalf Of Daniel Sananes
Sent: Thursday, August 6, 2020 10:58 AM
To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Subject: O7: FTP and SSL

Hi all

Is there a solution to give Omnis 7 the possibility to use SSL with the
FTP-commands?

Regards
Daniel Sananes
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com Start a new
message -> mailto:omnisdev-en at lists.omnis-dev.com 




More information about the omnisdev-en mailing list