getUrl()

getUrl()

Overview

The get url deluge task corresponds to a HTTP GET request. It is normally supported by services to perform a read operation like fetching data.

Return Type

  • Text
  • Key-value

Syntax

<variable> = getUrl( <stringUrl><headerMap>,<boolean> );
ParameterData typeDescription
<variable>

TEXT or KEY-VALUE

Variable which will contain the returned response.
<stringUrl>TEXT

The URL which will return the response.

<headerMap>

(optional)

KEY-VALUE

Variable holding header values as key-value pairs.

<boolean>

(optional)

BOOLEAN

Value 'true' will return a simple response content as text.

Value 'false' will return the response code (HTTP status code), and response content as key-value.

Examples

The following snippet returns the response of the given url:

xmlResp = getUrl("https://www.w3schools.com/xml/cd_catalog.xml");

Share this post : FacebookTwitter

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

Write to us: support@zohodeluge.com