Vote

cURL (Client URL Request Library) is an online control tool on which you add a library allowing to perform URL requests on various protocols.

Presentation

The main function of cURL is to download elements from URLs.
In case your Linux system does not have this tool, it can be installed thanks to the following command :

Since the number of protocols borne by cURL is important (DICT, file, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, Telnet et TFTP), we are going to tame this tool on the basis of the most common uses like the simple download :

Parameter also allowing to cumulate requests (Capital letter O).

Parameter allowing to resume a partial download (Pay attention to the syntax respect -C – ).

Parameter allowing to limit the downloading bandwidth.

Parameter in case of an authenticating access to the required URL.


Use

During cURL’s use, it is possible to perform various actions via provided parameters such as the conditional upload with the parameter -z :

The default downloaded file is rawly displayed except if output parameters are specified such as uppercase -O or lowercase -o :

It is also possible to include strings in order to operate multiple requests :


FTP

The file download via the FTP protocol is well known, so it obviously operates with cURL :

Parameter to specify an authentification.


Categories: SystemTutorials

JN Community

Les Ressources, en particulier les tutoriaux, présupposent que l’Utilisateur qui décide de les mettre en œuvre dispose des connaissances, des compétences et de l’expérience nécessaire pour cette mise en œuvre. L’Utilisateur disposant d’une connaissance, compétence et/ou expérience limitée ou insuffisante doit absolument s’abstenir de mettre en œuvre les Ressources par lui-même. Jaguar Network décline toute responsabilité quant aux conséquences dommageables de la mise en œuvre des Ressources, notamment sur les infrastructures informatiques de l’Utilisateur, de ses commettants ou préposés ou de tout tiers. Il est précisé en tant que de besoin que toute intervention de Jaguar Network visant à réparer les dommages causés par la mise en œuvre des Ressources par un Utilisateur ne disposant pas des connaissances, compétences et/ou expériences suffisantes sera facturée et fera l’objet d’un devis préalable et d’un bon de commande aux conditions des contrats Jaguar Network en vigueur.

Related Posts

System

Installation of a web server LEMP (Linux, Nginx, MySQL, PHP)

Vote The installation of a server LEMP Linux + Nginx + MySQL + PHP might be more useful and efficient than an Apache (server LAMP). Articles similaires

System

Operating load-balancing with HAproxy

Vote HAproxy is a software allowing Load-Balancing between several web servers by allocating requests in an almost transparent way for the user. Articles similaires

System

10 tips to write efficient scripts on Linux

Vote The shell script is the most simple type of programming you would write on Linux. Moreover, it is a necessary skill to automate your system administration tasks, to develop new simple features, … In Read more…