POST command
Dave Cragg
dcragg at lacscentre.co.uk
Wed Jul 5 05:41:28 EDT 2006
On 4 Jul 2006, at 16:35, Richard Miller wrote:
> Is there any way to stop, or check on the status of, an ongoing
> POST command? For example, if a POST command had not completed
> within 2 seconds, can it be aborted?
To check/show the status, you can use libUrlSetStatusCallback. (see
the Rev docs for a very basic example).
There is no "official" way to stop a post command. However, you could
try using the following undocumented command to achieve this:
ulCancelRequest <url>
For example,
ulCancelRequest "http://www.somewere.com/mypost.cgi"
This is an internal libUrl handler that is used by the unload url
routine. The same handler can also be used to cancel "get url"
requests. ("non-blocking" calls such as "load url",
"libUrlDownloadToFile", etc can be cancelled by using unload url)
However, if you use it, be aware that it may not always be available
in future liburl releases (unlikely), or it may get renamed (a little
more likely). So check that it still works should you upgrade the
libUrl version used in your app.
Cheers
Dave
More information about the use-livecode
mailing list