saveURLToFile

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Availability

This routine is available starting with SIL Engine™ 3.0.8.

Syntax

saveURLToFile(url, file)

Description

Saves the content of some URL (HTTP GET) to the specified file.

Parameters

Parameter name

Type

Required

Description

url

string

yes

Valid URL. No auth is performed.

filestringyesPath to the (new) file that will keep the content of the URL.

Returns

The routine returns a boolean indicating if the call succeeded or not.

Example

Simple usage
string testfile="c:/tests/mytempfile.html"; //assuming that folder `tests` has been already created in c:\ path

if(saveURLToFile("https://kepler-rominfo.com/pages/solutions/jira-plugins", testfile)) {
  //do something with that html
}


See also