The S-Lang curl
module makes use of the
cURL library to
provide the S-lang interpreter the ability to transfer files in a
simple but robust manner using a variety of protocols including FTP
and HTTP.
Although there are some minor differences, the functions in
curl
module represent a more or less straightforward mapping
of the underlying
cURL library. As such, the user the user is
strongly encouraged to read the
excellent, well-written documentation for the
cURL library, which even
includes a tutorial. Moreover, anyone familiar with the
cURL API
should have no problems using the curl
.
Currently the module provides S-lang interfaces to the so-called cURL ``easy'' and ``multi'' class of functions, which permit sequential and asynchronous file transfers, respectively.
All functions in the module have names that start with curl_
.
Functions in the ``multi'' interface begin with curl_multi_
.
Before the module can be used it must first be loaded into the interpreter using a line such as
require ("curl");