Skip to end of metadata
Go to start of metadata

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