Livecode Wiki
Advertisement

Set this to true if you want libURL GET requests to follow HTTP redirects and GET the page that it is redirected to.

Syntax:

libURLFollowHttpRedirects <true|false>

Examples:

libURLFollowHttpRedirects (the cFollowRedirects of me)


When set to true (the default), libURL will respond to 301, 302, and 307 responses by trying to get the url listed in the Location header if the original request was a GET (i.e not a POST). It will respond to 303 responses by trying to GET the redirected url whatever the original request method. When set to false, no attempt is made to get the redirected url and the result will return "error" followed by the status code and message (e.g. error 302 found)

See Also: libURLDownloadToFile Command, libURLLastHTTPHeaders Function

Advertisement