Re: Mastering TS Net

2018-07-05 Thread Sannyasin Brahmanathaswami via use-livecode
With TSGetNet, is it possible to just get the "status code" ("200" is good, "404" it bad, among other things) Of a file on a webserver, *before* you download it? If it is a 404 you "bail on the operation", in form the user "Not Found" but if it is 200, continue to stream it? Brahmanathaswami

Re: Mastering TS Net

2018-07-02 Thread Andrew Bell via use-livecode
Jul 2018 15:19:34 + From: Sannyasin Brahmanathaswami To: How LiveCode Subject: Mastering TS Net Message-ID: Content-Type: text/plain; charset="utf-8" I really need to get my head around TSNet, so began experiments. This is the documentation for tsNetGetFile " local tHeaders, tResu

Re: Mastering TS Net

2018-07-02 Thread Sannyasin Brahmanathaswami via use-livecode
I looked at the lesson. Quite good! I think one more lesson may be useful. In my case I will use a "slide show" as a use case. (But there others, thinking of streaming music playlist) 1) Assume you have the URLs for a slideshow; 2) you fetch this by calling JSON/Text file with the urls for

Re: Mastering TS Net

2018-07-02 Thread Sannyasin Brahmanathaswami via use-livecode
Charles: Mysteries I booted Livecode fresh the morning, and used the same script. But I no longer get tResult --tsneterr: ID already in use. Dictionary script works as expected "File downloaded" local tHeaders, tResult on mouseup tsNetCloseConn "1" put empty into tResult

Re: Mastering TS Net

2018-07-02 Thread Sannyasin Brahmanathaswami via use-livecode
@Charles: Thanks, I look into lessons. But, using the dictionary example Why do we get the > # variable watcher > > tResult --tsneterr: ID already in use Even *before* the trace the script? I have break On mouseup But it gives this error even before starting the trace?

Re: Mastering TS Net

2018-07-01 Thread Charles Warwick via use-livecode
Hi BR, There are a series of lessons on tsNet on the LiveCode website: http://lessons.livecode.com/m/4071/c/235433 If you are looking for an example of how to download something direct to a file, the lesson called “How to asynchronously download via SFTP directly a file” should help. The

Re: Mastering TS Net

2018-07-01 Thread J. Landman Gay via use-livecode
Does TSNet even work with local files? For local files use the read/write commands or "get/put url". With a commercial license you shouldn't need to deal with the lower level functions for internet communication. The basic put, post, and get commands should do it. -- Jacqueline Landman Gay

Mastering TS Net

2018-07-01 Thread Sannyasin Brahmanathaswami via use-livecode
I really need to get my head around TSNet, so began experiments. This is the documentation for tsNetGetFile " local tHeaders, tResult put tsNetGetFile("1", "/path/to/downloaded/file.dat", \ "ftp://user:p...@ftp.example.com/file.dat;, tHeaders, \ "transferComplete") into tResult on