User Tools

Site Tools


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'.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.
k24/k24.2/k24.2.1/start.txt · Last modified: by 127.0.0.1