url()

Fetches data from a given URL.

Syntax

url(url)
url(url, filename)

Parameters

Parameter Type Description Comment
url String URL to fetch data from Must be a valid URL
filename String Path to save response to (optional) If provided, data is saved to this file

Return Value

Examples

Fetch content from a website and return as string

url("https://cnc.zone");

Fetch content from a website and save it to a file

url("https://cnc.zone", "download.html");