Gets content of given URL as string (asynchronously). URL need to be encoded using encodeURI when any special or unicode character is used.
Optional
Rest
...params: any[]Additional parameters. Possible properties:
headers: SharedStringList with custom HTTP headers.
requestBody: Body to be posted by HTTP POST, if empty or not included, then HTTP GET is used
cacheTimeout: If >0, caches reponse and uses saved responses from DB not older than cacheTimeout seconds
filePath: If present, then the content is saved to the file and the path is returned as resolved param
taskProgress: optional progress token, to create one use app.backgroundTasks.createNew()
Returns fetched data. If cacheTimeout>0, the first character in result is '1' (was read from cache) or '0' (not read from cache).
Performs HTTP(S) request using Indy (can be used as XMLHttpRequest replacement)
Content to send (see App.filesystem.getFileContentAsync)
custom HTTP headers
HTTP method
return !terminated
, i.e. return true to continue or false to terminate
full locator including URL params, i.e. ?foo=bar
Web related utilities to be used in scripts Accessible via app.utils.web
Web