delete url calls url
Dave Cragg
dcragg at lacscentre.co.uk
Sun Apr 4 04:53:16 EDT 2004
At 10:01 am +1200 4/4/04, Rodney Tamblyn wrote:
>http://www.runrev.com/revolution/developers/bugdatabase/show_bug.cgi?id=1459
>
>Calling "delete url <url>" will call the url. This is not intuitive
>(or necessary) and in my case helps to explain why queries from my
>application to a php script that generated emails were generating
>multiple email messages. I was thrown off the track for a long time
>because php has a known issue with the php mail() command which can
>cause it to send multiple messages.
I'm not seeing this. What kind of url are you trying to delete?
(http, ftp, file, etc)
Unless you are using delete with a php or cgi script. (e.g. delete
url "http://whatever.com/cgi-bin/myscript.cgi). In this case, the
script will do whatever it does, irrespective of the request method
(GET,POST,DELETE,etc.). If the script should handle delete requests,
it needs to check for the request method and act accordingly. In a
cgi script, the $REQUEST_METHOD environment varaible has this
information. Not sure about php, but I guess there's an easy way to
get it. But in general, most http servers don't support DELETE (for
good reasons), and it's only nominally supported in libUrl as it has
never been tested. (Generally it's used with libUrl for ftp urls.)
If it's a file url, then it's a different issue (engine) and I'll do
some buck-passing. :)
Cheers
Dave
More information about the use-livecode
mailing list