Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleAvailability

This routine is available starting with SIL Engineā„¢ 3.0.8.

...

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

saveURLToFile(url, file)

Package

http

Alias

Pkg Usage

saveURLToFile(url, file)

Description

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

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

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

url

...

String

...

Yes

Valid URL. No auth is performed.

file

...

String

...

Yes

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

Return Type

...

Boolean

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

Example

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

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

...

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "httpsystem_support"routines" and space = currentSpace ( )
labelshttparray_supportroutines