Downloads and stores a file from a URL. Note: If an error occurs, the error message will be stored instead.
wget( url, filepath, location )
Returns -1 if fails, returns the server response code: Possible examples 200 = success, 301 = moved, 404 = not found.
  • url = file to retrieve
  • filepath = where destination file should be stored
  • location = destination 'data' or 'script'.
User Annotations: wget