EnglishРусский  

   Array

   Buffer

   Clipboard

   COM/OLE

   Console

   CSV

   Dbf

   Files

   FTP

   Hash

   HTTP

   INI File

   Keyboard

   Math

   Memory

   Process

   Registry

   Socket

   Stack

   String

   System

   Thread

   Tree

   XML

The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

http_getfile

Downloading a file via the HTTP protocol. The method sends a GET request to the specified URL and writes data it receives to the specified file.

func uint http_getfile (
   str url,
   str filename,
   uint notify,
   uint flag
)

Parameters

url The URL address for downloading.
filename The name of the file for writing.
notify The function for getting notifications. It can be 0.
flag Flags.
$HTTPF_REDIRECTIf redirection is used, download from the new address.
$HTTPF_STRAdd 0 to databuf after data is received. Use this flag if databuf is a string.
$HTTPF_CONTINUEIf the file already exists, resume downloading it. It is valid for http_getfile.
$HTTPF_SETTIMESet the same time for the file as it is on the server. It is valid for http_getfile.

Return value

If the function succeeds, the return value is 1. If the function fails, the return value is 0.

Related links

Source