HttpGet
From SoftIVR
httpGet
httpGet(URL[, header..]) - Fetches and returns the specified web page.
Parameters
- URL - the URL to fetch.
Optional parameters
Extra headers can be added as additional parameters - for example:
html = httpGet("http://www.site.com/login.php", "Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==", "Referer: http://www.site.com");
Return value
The contents of that URL.
Example
html = httpGet("http://www.google.com");
log(html);
will log the contents of Google's home page.
For a more complete example, please see the weather report sample application.