Sahi Pro - URL APIs
abstractAPIs for reading content from URLs
_readURL
Since Sahi Pro: 3.5Since Sahi OS: 3.5
_readURL($url)
Arguments
$url | string | URL to read content from |
Details
Sends a GET request to the URL and returns response body as a string.
Sends a GET request to the URL and returns response body as a string.
var $contents = _readURL("http://sahi.co.in/demo/index.htm"); // returns contents of the page