hmm, something is wrong in my code: it works with ftp and sftp, but not with
ftps (latest build ftp 1.2)

OB SET($options;\
"URL";"ftps://ftp.node.de/auto2.png";\
"USERNAME";"myuser";\
"PASSWORD";"mypass";\
"SSL_VERIFYHOST";0;\
"SSL_VERIFYPEER";0)

$createMissingDir:=1

$cacert:=Get 4D folder(Current resources folder)+"cacert.pem"
OB SET($options;\
"CAINFO";$cacert)  //need this for ftps
$path:=System folder(Desktop)+"auto2.png"

$error:=cURL_FTP_Send (JSON Stringify($options);$path;$createMissingDir)

Regards Armin


4D Tech mailing list wrote
> $path:=System folder(Desktop)+"test.zip"
> 
> C_OBJECT($options)
> 
> OB SET($options;\
> "URL";"ftps://install.herdly.cloud/install/test.zip";\
> "USERNAME";"install";"redacted";"pass";"CONNECTTIMEOUT";5)
> $createMissingDir:=1
> $error:=cURL_FTP_Send (JSON Stringify($options);$path;$createMissingDir)





--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to