EnglishРусский  

   Array

   Buffer

   Clipboard

   COM/OLE

   Console

   CSV

   Dbf

   Files

   FTP

   Hash

   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_get

Getting data via the HTTP protocol. The method sends a GET request to the specified URL and writes data it receives to the databuf buffer.

func uint http_get (
   str url,
   buf databuf,
   uint notify,
   uint flag,
   str otherpars
)

Parameters

url The URL address data is received from.
databuf The buffer for getting data.
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