URL APIs

abstractAPIs for reading content from URLs

Read URL

Sends a GET request to the URL and returns response body as a string.

Parameters
$urlstring URL to read content from
Return Value
stringResponse body

Modes Supported :
Raw Script
var $contents = _readURL("http://sahi.co.in/demo/index.htm"); // returns contents of the page

Sahi Pro Classic API :_readURL