Re: DELETE url

2019-07-05 Thread Mark Wieder via use-livecode
On 7/5/19 6:13 PM, Dar Scott Consulting via use-livecode wrote: And an aside. Off topic. I guess I am old-school. I know it is the fad, but using DELETE to logout seems goofy. Yeah, you can make a URL that looks like a session and you are deleting the session. But it seems that is like using

Re: DELETE url

2019-07-05 Thread Stephen MacLean via use-livecode
This works for me: delete URL(tPostURL) tPostURL is the URL you want to send the delete to. The URL can include an API call, authentication token, etc. I do have LC Business, but don’t need to use tsNet for this specifically, although I do use it for some other things. You can find all the

Re: DELETE url

2019-07-05 Thread Dar Scott Consulting via use-livecode
And an aside. Off topic. I guess I am old-school. I know it is the fad, but using DELETE to logout seems goofy. Yeah, you can make a URL that looks like a session and you are deleting the session. But it seems that is like using HEAD to indicate what direction you are going or OPTIONS to set

Re: DELETE url

2019-07-05 Thread Dar Scott Consulting via use-livecode
You know where to start with tsNetCustom(); look in the dictionary. From there? Maybe compare that with tsNetGet() and make changes as needed. > On Jul 5, 2019, at 4:23 PM, J. Landman Gay via use-livecode > wrote: > > The server lady wants it that way. I create signed AWS URLs that are

Re: DELETE url

2019-07-05 Thread Charles Warwick via use-livecode
Hi, You can send a HTTP DELETE using tsNet. There is a lesson here that shows you how: http://lessons.livecode.com/m/4071/l/856543-how-to-send-a-custom-http-request-using-the-tsnet-external All tsNet functions work on mobile, so no issue there either. Regards, Charles > On 6 Jul 2019, at

Re: DELETE url

2019-07-05 Thread Stephen MacLean via use-livecode
Hi J, DELETE does work, it’s used in the WP library. I’m out right now, but will find the code and send you a sample when I get back. Best, Steve MacLean > On Jul 5, 2019, at 6:23 PM, J. Landman Gay via use-livecode > wrote: > > The server lady wants it that way. I create signed AWS URLs

Re: DELETE url

2019-07-05 Thread J. Landman Gay via use-livecode
The server lady wants it that way. I create signed AWS URLs that are secure and which access her APIs. So far we've only used POST, PUT, and GET. Now we've added a "log out" function and I'm supposed to send the URL with DELETE. She is floored that I can't do that: "I can change it if you

Re: DELETE url

2019-07-05 Thread Dar Scott Consulting via use-livecode
Testing DELETE is scary. Consider httpstat.us , httpbin.org or others for safe testing. I haven't tested, but I'd think that 'delete URL "http://www.example.com/oldthings.txt "' should work. You might need to

DELETE url

2019-07-05 Thread J. Landman Gay via use-livecode
I need to send a DELETE to a server. I only know of PUT, GET, and POST options. Does tsNet support DELETE? If not, how would I do that? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com

Re: name vs short name

2019-07-05 Thread Klaus major-k via use-livecode
> Am 05.07.2019 um 21:24 schrieb Klaus major-k via use-livecode > : > ... >> >> because... >> logical but wrong: >> set the name of button 1 to the name of button 2 >> logical but error: >> set the short name of button 1 to the short name of button 2 >> a cognitive leap but works: >> set the

Re: name vs short name

2019-07-05 Thread Klaus major-k via use-livecode
Hi Mark, > Am 05.07.2019 um 21:20 schrieb Mark Wieder via use-livecode > : > > On 7/5/19 10:17 AM, Bob Sneidar via use-livecode wrote: >> If you can set the name and you get the same effect, why try to set the >> short name? > > because... > logical but wrong: > set the name of button 1 to

Re: name vs short name

2019-07-05 Thread Mark Wieder via use-livecode
On 7/5/19 10:17 AM, Bob Sneidar via use-livecode wrote: If you can set the name and you get the same effect, why try to set the short name? because... logical but wrong: set the name of button 1 to the name of button 2 logical but error: set the short name of button 1 to the short name of

Re: name vs short name

2019-07-05 Thread Bob Sneidar via use-livecode
If you can set the name and you get the same effect, why try to set the short name? The ling name is the full reference to the object using it's ID. Of course, you would have fits if you could set that to something different! The dictionary is obviously wrong, it should have used "get" not