getUrl

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 which will return the response.

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("https://www.zoho.com",false);
mapData.get("responseCode");
mapData.get("responseText");

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com