Error getting tags :
error 404Error getting tags :
error 404 libURLErrorData | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
libURLErrorData
Basics
Expander triangle
Type
Function
Syntax
libURLErrorData(url)
Introduced
1.1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Network
Summary
Returns any error that was caused during a download that was started with the loadcommand.
Examples

put libURLErrorData("http://www.example.org/index.html") into myErr
if libURLErrorData(it) contains "404" then answer "File doesn't exist!"
if libURLStatus(myURL) is "error" then return libURLErrorData(myURL)

Additional Comments
Expander triangle

Use the libURLErrorData function to check the error status of a download.

Parameters:

The url is a URL, or an expression that evaluates to a URL.

Value:

The libURLErrorData function returns a string.

Comments:

You can check the URLStatus function to determine the status of a URL that has been cached with the load command. If the download encountered an error, the URLStatus function returns "error". In this case, the libURLErrorData function returns the result of the attempted download.

If the download failed because of a server error--for example, if a requested web page was not found--the libURLErrorData function returns the error message sent by the server. If the download failed for another reason--for example, if the server did not respond, or if an invalid URL was supplied--the libURLErrorData function returns an error message generated by the Internet library.

Important! The libURLErrorDatafunction is part of the Internet library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section of the Standalone Application Settings window, make sure "Internet Library" is selected in the list of script libraries.

User Comments
Expander triangle