Creator Help

getUrl

This topic describes the syntax and usage of the getUrl function in Zoho Creator .

Description

The getUrl  function returns map that contains the response information

Syntax

getUrl(<url-string>

The getUrl function syntax has the following arguments.

<url-string> - Required. The URL to be accessed, for example, "http://www.zoho.com"

Return Value

Returns string/map that contains the response information.

Example    

//to get simple response with response content as string

stringdata= getUrl("https://www.zoho.com");

 

//to get detailed response that returns the response code (http status code) and response content as a key-value pair.

mapData = map();
mapData = getUrl("http://www.zoho.com",false);
mapData.get("responseCode");
mapData.get("responseText");

Top