Skip to content

wget()#

Syntax
wget( url, filepath, location )

Returns#

Returns -1 if fails, returns the server response code: Possible examples 200 = success, 301 = moved, 404 = not found.

Parameters#

Parameter Description
url file to retrieve
filepath where destination file should be stored
location destination ‘data’ or ‘script’.