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 8:27 am, Stephen MacLean via use-livecode > <use-livecode@lists.runrev.com> wrote: > > 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 >> <use-livecode@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:swordf...@www.example.com/secretthings.txt >>> <http://badwolf:swordf...@www.example.com/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 >>> darzLab >>>> On Jul 5, 2019, at 1:55 PM, J. Landman Gay via use-livecode >>>> <use-livecode@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 | jac...@hyperactivesw.com >>>> HyperActive Software | http://www.hyperactivesw.com >> >> >> -- >> Jacqueline Landman Gay | jac...@hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> _______________________________________________ >> 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 > > > > _______________________________________________ > 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 _______________________________________________ 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