URL Functions
functions for reading content from URLs
_readURL
Section titled “_readURL”- 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
| Name | Type | Description |
|---|---|---|
$url | string | URL to read content from |
Returns
string | Response 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
