[ ANN ] Release 8.1.0 DP-3

Charles Warwick charles at techstrategies.com.au
Mon Aug 1 00:14:46 EDT 2016


On 1/08/2016 7:04 am, Matthias Rebbe wrote:
>> Am 31.07.2016 um 05:37 schrieb Charles Warwick <charles at 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




More information about the use-livecode mailing list