User Tools

Site Tools


Sidebar

Network and communication

k24:k24.2:k24.2.1:start

24.2.1 Class Curl

The Curl (gb.net.curl) class is the parent class of the DNSClient, FTPClient and HTTPClient classes. You cannot create Curl objects directly. For this reason, only the properties, methods and events of the three classes DNSClient, FTPClient and HTTPClient, which use the class Curl (gb.net.curl), are explicitly described.

The base class Curl uses the library 'libcurl'.


At the link: https://curl.haxx.se/libcurl/c/libcurl-errors.html you will find detailed information about the error codes, which are also referenced in the Gambas documentation for the DNSClient.Status, FTPClient.Status and HTTPClient.Status property.

Notes:

The website https://wiki.ubuntuusers.de/cURL/ describes in detail the curl programme, which also uses the 'libcurl' library.

For example, use the following command to upload a file under privileged rights to the 'basis' folder on your FTP server:

curl -T /home/user/path/to/file -u ftp_username:ftp_password ftp://www.yourdomain.com/basis/

On the other hand, the source code archive of the stable Gambas version 3.15.1 is stored in a flash in the home directory on your hard disk:


Figure 24.2.1.1: CLI programme 'curl'.

The website uses a temporary session cookie. This technically necessary cookie is deleted when the browser is closed. You can find information on cookies in our privacy policy.
k24/k24.2/k24.2.1/start.txt · Last modified: 16.08.2022 (external edit)

Page Tools