Changements récents - Rechercher:

Espace Wiki ∂'Alembert
Documentation générale


Espace Guide de survie du SysAdmin
Documentation technique


Espace Guide de survie du Développeur
Pour les développeurs


Espace Institut ∂’Alembert
L'institut


Le Site
À propos du Site
Liste complète des Pages


Aide PmWikiFr

Help PmWiki

GSSA /

Curl

Page mise à jour le 29/06/2016 10:36

Vous êtes dans un espace restreint en écriture.

Présentation

cURL (abréviation de client URL request library : « bibliothèque de requêtes aux URL pour les clients » ou see URL : « voir URL ») est une interface en ligne de commande, destinée à récupérer le contenu d'une ressource accessible par un réseau informatique.

La bibliothèque supporte notamment les protocoles DICT, file, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, Telnet et TFTP.

HTTP[S]

-I <URL>
tester une URL avec un HEAD:

(:source:) curl -I http://www.dalembert.upmc.fr HTTP/1.1 302 Found Location: http://www.dalembert.upmc.fr/ijlrda Vary: Accept-Encoding Content-Type: text/html; charset=ISO-8859-1 Server: Varnish Content-Length: 0 Date: Wed, 29 Jun 2016 10:31:10 GMT X-Varnish: 9548925 Age: 0 Via: 1.1 varnish Connection: keep-alive

-IL <URL>
tester une URL en suivant les liens HTTP[S].

(:source:) curl -IL http://www.dalembert.upmc.fr HTTP/1.1 302 Found Location: http://www.dalembert.upmc.fr/ijlrda Vary: Accept-Encoding Content-Type: text/html; charset=ISO-8859-1 Server: Varnish Content-Length: 0 Date: Wed, 29 Jun 2016 10:32:02 GMT X-Varnish: 9548929 9548925 Age: 52 Via: 1.1 varnish Connection: keep-alive HTTP/1.1 301 Moved Permanently Location: http://www.dalembert.upmc.fr/ijlrda/ Vary: Accept-Encoding Content-Type: text/html; charset=iso-8859-1 Server: Varnish Content-Length: 244 Date: Wed, 29 Jun 2016 10:32:03 GMT X-Varnish: 9548930 Age: 0 Via: 1.1 varnish Connection: keep-alive HTTP/1.1 200 OK Set-Cookie: 03a061a78c08551108d9014ff95872e7=glb6m75m52gm219sgmj9vsmgu0; path=/; HttpOnly P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM" Expires: Wed, 17 Aug 2005 00:00:00 GMT Last-Modified: Wed, 29 Jun 2016 10:32:51 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Vary: Accept-Encoding Content-Type: text/html; charset=utf-8 Content-Language: fr-FR Server: Varnish Content-Length: 15792 Date: Wed, 29 Jun 2016 10:32:03 GMT X-Varnish: 9548931 Age: 0 Via: 1.1 varnish Connection: keep-alive

À propos du site • Licence Creative Commons • Cooked with love in 2014-2023 by pcht
Page mise à jour le 29/06/2016 10:36