Gentee Programming Language > Documentation > Libraries Download documentation

http_getfile

The method sends a GET request to the specified URL and writes data it receives to the specified file.
 
uint http_getfile(
      str   url,
      str   filename,
      uint   notify,
      uint   flag
)

Parameters

urlThe URL address for downloading.
filenameThe name of the file for writing.
notifyThe function for getting notifications. It can be 0.
flagFlags.
$HTTPF_REDIRECTIf redirection is used, download from the new address.
$HTTPF_CONTINUEIf the file already exists, resume downloading it.
$HTTPF_SETTIMESet the same time for the file as it is on the server.

Return value

Nonzero if initialization was successful; otherwise 0.

See also

    Internet


 Copyright © 2004-2006 Gentee Inc. All rights reserved.