Dar Scott Consulting
dsc at swcp.com
Fri Jul 5 16:30:21 EDT 2019
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:firstname.lastname@example.org/secretthings.txt <http://badwolf:email@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.
> 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
> 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