Dar Scott Consulting
dsc at swcp.com
Fri Jul 5 20:05:21 EDT 2019
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 <use-livecode at lists.runrev.com> wrote:
> 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 really don’t have DELETE, but I would find it surprising. If you do have it, I’d prefer to keep it as DELETE since it makes the most sense for the action."
> Then she suggests using cURL but that won't work on mobile where we can't use shell.
> I wouldn't know where to start with tsNetCustom(), but I'll investigate. Suggestions welcome, provided it works on mobile.
> On 7/5/19 3:30 PM, Dar Scott Consulting via use-livecode wrote:
>> Testing DELETE is scary. Consider httpstat.us <http://httpstat.us/>, httpbin.org <http://httpbin.org/> or others for safe testing.
>> I haven't tested, but I'd think that 'delete URL "http://www.example.com/oldthings.txt <http://www.example.com/oldthings.txt>"' should work.
>> You might need to pass along some auth:
>> delete URL "http://badwolf:email@example.com/secretthings.txt <http://badwolf:firstname.lastname@example.org/secretthings.txt>"
>> If not, you can directly use TCP. It is as easy as a simple GET. It is as hard as figuring out simple HTTP.
>> Or consider tsNetCustom() and use "DELETE" as the request.
>> Dar Scott
>>> On Jul 5, 2019, at 1:55 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> 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 | jacque at hyperactivesw.com
>>> HyperActive Software | http://www.hyperactivesw.com
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode