I just bought an Indy version in order to use secured FTP connexion (otherwise, the Community version was perfect to my personal needs).
I'm trying to send data (not file) with tsNetUpload() tsNet function like this:
Code: Select all
put "something" into myData
put 1 into connID
put true into tSettings["use_ssl"]
-- using "ftp" as URL :
put "ftp://myLogin:myPass@ftp.myDomain.com/myDirectory/myFile.txt" into tURL
put tsNetUpload(connID, tURL, "", "uploadComplete", myData, tSettings) into tResult
get tsNetRetrError(connID)
As I'm not familiar with internet connections, I tried with the URL I used in my FTP software:
-- using "ssh" as URL (working URL used in my FTP software):
Code: Select all
put "ssh://myLogin:myPass@ssh.mySharedHost.com:22/myDirectory/myFile.txt" into tURL
get tsNetRetrError(connID)
Data I'm trying to upload is located on a shared commercial host, so please don't tell me I would have to change some server side settings!
Thank you.