Skip to content
Get Free Trial

URL Functions

functions for reading content from URLs

Since
Sahi Pro 3.5
Desktop Engine 7.0.0
Mobile Engine 7.5.0
SAP Engine 9.0.0

Modes BrowserWindowsJavaAndroidiOSSAP

_readURL($url)

Arguments

NameTypeDescription
$urlstringURL to read content from

Returns

stringResponse body

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