On 1/08/2016 7:04 am, Matthias Rebbe wrote:
Am 31.07.2016 um 05:37 schrieb Charles Warwick <char...@techstrategies.com.au>:
Yes, FTPS is supported by the external, though you have to use the tsNet
commands directly, rather than the standard libUrl calls.
For explicit FTPS transfers, you can do something like this:
local tEmptyHeaderVar, tData, tResultHeaders, tSettings
put true into tSettings["use_ssl"]
put "some data to upload" into tData
put tsNetUploadSync("ftp://ftp.domain.com/path/to/file.dat", tEmptyHeaderVar,
tData, tResultHeaders, tSettings) into tResult
Charles,
thanks for your script although it did not work. ;)
But it put me in the right direction.
I had to modify the put tsNetUploadSync….. line as follows to get it working
put tsNetUploadSync("ftp://ftp.domain.com/path/to/file.dat", tEmptyHeaderVar,
tData, tResultHeaders, tBytes, tSettings) into tResult
(the bytes variable tBytes was missing)
Without that modification i always got the error "tsneterr: (28) Timeout was
reached”.
Sorry about that! You are absolutely right, the bytes var is needed.
Without fixing that, it would have used tSettings as the bytes parameter
and not registered the "use_ssl" setting.
Regards,
Charles
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode