<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-menu-disabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 skin-theme-clientpref-os vector-sticky-header-enabled skin-thumbsize-clientpref-standard" lang="fr" dir="ltr"><head>
    <meta charset="UTF-8">
    <title>CURL</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/png" href="./_res_/favicon.png">
    <link rel="canonical" href="https://fr.wikipedia.org/wiki/CURL"> <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.pygments.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
    <meta name="ResourceLoaderDynamicStyles" content="">
    
    <link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
    <link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
    <link rel="stylesheet" type="text/css" href="./_res_/footer.css">
    <link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
  </head>
  <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-CURL rootpage-CURL skin-vector-2022 action-view">
    <div class="mw-page-container">
      <div class="mw-page-container-inner">
        <div class="mw-content-container">
          <main id="content" class="mw-body">
            <header class="mw-body-header vector-page-titlebar">
              <h1 id="firstHeading" class="firstHeading mw-first-heading">cURL</h1>
            </header>
            <a id="top"></a>
            <div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
              <div id="contentSub">
                <div id="mw-content-subtitle"></div>
              </div>
              <div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="fr" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="fr" dir="ltr"><p class="mw-empty-elt">
</p>



<div class="infobox_v3 infobox infobox--frwiki noarchive" style="width:260px">
<div class="entete icon informatique" style="color: #000000;"><style data-mw-deduplicate="TemplateStyles:r228712691">
/* start https://fr.wikipedia.org/ */


.mw-parser-output .entete.informatique{background-image:url("./_mw_/Picto.nfo.png")}


/* end   https://fr.wikipedia.org/ */
</style>
<div>cURL</div>
</div>
<div class="images"><span class="mw-default-size" typeof="mw:File/Frameless"><img alt="Description de l'image Curl-logo.svg." src="./_assets_/0c70a452f799bfe840676ee341124611/langfr-250px-Curl-logo.svg.png" decoding="async" width="140" height="42" style="--mw-file-upright: 0.55" class="mw-file-element mw-file-upright" data-file-width="429" data-file-height="129" loading="lazy"></span> 
</div>
<div class="hr" style="height:2px;"></div>
<div class="images"><span class="mw-default-size" typeof="mw:File/Frameless"><img alt="Description de cette image, également commentée ci-après" src="./_assets_/0c70a452f799bfe840676ee341124611/CURL_example_screenshot.png" decoding="async" width="250" height="139" style="--mw-file-upright: 1" class="mw-file-element mw-file-upright" data-file-width="757" data-file-height="420" loading="lazy"></span> 
</div>
<div class="legend">Commande curl sur une page <a href="Wikip%C3%A9dia" title="Wikipédia">Wikipédia</a> en <a href="HTTP/3" class="mw-redirect" title="HTTP/3">HTTP/3</a>.</div>
<table><caption style="color:#000000;">Informations</caption>

<tbody><tr>
<th scope="row">Créateur</th>
<td>
<span class="wd_p170"><a href="Daniel_Stenberg" title="Daniel Stenberg">Daniel Stenberg</a></span></td>
</tr>





<tr>
<th scope="row"> <a href="Version_d'un_logiciel" title="Version d'un logiciel">Première version</a>
 </th>
<td>
<time class="nowrap" datetime="1996-11-11" data-sort-value="1996-11-11">11 novembre 1996</time> (<span data-sort-value="&amp;0000000000010784" class="datasortkey">29&nbsp;ans, 192&nbsp;jours</span>)</td>
</tr>

<tr>
<th scope="row"> <a href="Version_d'un_logiciel" title="Version d'un logiciel">Dernière version</a>
 </th>
<td>
<span class="wd_p348">8.20.0 (<time class="nowrap" datetime="2026-04-29" data-sort-value="2026-04-29">29 avril 2026</time>)<sup id="cite_ref-wikidata-72425e0f544fd793a021efb629636e9da76a4725_1-0" class="reference"><a href="#cite_note-wikidata-72425e0f544fd793a021efb629636e9da76a4725-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></span></td>
</tr>



<tr>
<th scope="row"><a href="D%C3%A9p%C3%B4t_(informatique)" title="Dépôt (informatique)">Dépôt</a></th>
<td>
<span class="wd_p1324"><a rel="nofollow" class="external text" href="https://github.com/curl/curl">github.com/curl/curl</a></span></td>
</tr>

<tr>
<th scope="row"><a href="Assurance_qualit%C3%A9" title="Assurance qualité">Assurance qualité</a></th>
<td>
<span class="wd_p2992"><a href="Int%C3%A9gration_continue" title="Intégration continue">Intégration continue</a></span></td>
</tr>

<tr>
<th scope="row"> État du projet
 </th>
<td>
En développement</td>
</tr>

<tr>
<th scope="row"> <a href="Langage_de_programmation" title="Langage de programmation">Écrit en</a>
 </th>
<td>
<span class="wd_p277"><a href="C_(langage)" title="C (langage)">C</a></span></td>
</tr>





<tr>
<th scope="row"><a href="Syst%C3%A8me_d'exploitation" title="Système d'exploitation">Système d'exploitation</a></th>
<td>
<span class="wd_p306"><a href="Microsoft_Windows" title="Microsoft Windows">Microsoft Windows</a>, <a href="Linux" title="Linux">GNU/Linux</a>, <a href="MacOS" title="MacOS">macOS</a> et <a href="Berkeley_Software_Distribution" title="Berkeley Software Distribution">BSD</a></span></td>
</tr>









<tr>
<th scope="row"><a href="Internationalisation_(informatique)" title="Internationalisation (informatique)">Langues</a></th>
<td>
<span class="wd_p407"><a href="Anglais" title="Anglais">Anglais</a></span></td>
</tr>

<tr>
<th scope="row"> Type
 </th>
<td>
<span class="wd_p31">Utilitaire de ligne de commande <small>(<a href="https://en.wikipedia.org/wiki/Command-line_tool" class="extiw external" title="en:Command-line tool"><span class="indicateur-langue" title="Article sur Wikipédia en anglais">en</span></a>)</small><br><a href="Biblioth%C3%A8que_logicielle" title="Bibliothèque logicielle">Bibliothèque logicielle</a><br><a href="Client_HTTP" title="Client HTTP">Client HTTP</a></span></td>
</tr>

<tr>
<th scope="row"> <a href="Politique_de_distribution" title="Politique de distribution">Politique de distribution</a>
 </th>
<td>
<a href="Logiciel_libre" title="Logiciel libre">Gratuit</a></td>
</tr>

<tr>
<th scope="row"><a href="Licence_de_logiciel" title="Licence de logiciel">Licence</a></th>
<td>
<span class="wd_p275">Licence curl <small>(<a href="https://www.wikidata.org/wiki/Q33042394" class="extiw external" title="d:Q33042394"><span class="indicateur-langue" title="Voir l'élément Wikidata correspondant">d</span></a>)</small></span></td>
</tr>

<tr>
<th scope="row"><a href="Documentation_logicielle" title="Documentation logicielle">Documentation</a></th>
<td>
<span class="wd_p2078"><a rel="nofollow" class="external text" href="https://curl.se/docs/">curl.se/docs</a></span></td>
</tr>

<tr>
<th scope="row"><a href="Site_web" title="Site web">Site web</a></th>
<td>
<span class="wd_p856"><a rel="nofollow" class="external text" href="https://curl.se/">curl.se</a></span></td>
</tr>

</tbody></table>
<p class="mw-empty-elt">

</p>
</div>
<p><b>cURL</b> (abréviation de <i>client URL request library</i>&nbsp;: «&nbsp;bibliothèque de requêtes aux URL pour les clients&nbsp;» ou <i>see URL</i>&nbsp;: «&nbsp;voir <a href="URL" class="mw-redirect" title="URL">URL</a>&nbsp;») est une <a href="Interface_en_ligne_de_commande" title="Interface en ligne de commande">interface en ligne de commande</a>, destinée à récupérer le contenu d'une ressource accessible par un <a href="R%C3%A9seau_informatique" title="Réseau informatique">réseau informatique</a>.
</p><p>La ressource est désignée à l'aide d'une <a href="URL" class="mw-redirect" title="URL">URL</a> et doit être d'un type supporté par le logiciel (voir ci-dessous). Le logiciel permet de créer ou modifier une ressource (contrairement à <a href="Wget" class="mw-redirect" title="Wget">wget</a>), il peut ainsi être utilisé en tant que client <a href="Representational_state_transfer" title="Representational state transfer">REST</a>.
</p><p>Le programme cURL implémente l'interface utilisateur et repose sur la <a href="Biblioth%C3%A8que_logicielle" title="Bibliothèque logicielle">bibliothèque logicielle</a> <code>libcurl</code>, développée en <a href="C_(langage)" title="C (langage)">langage C</a>. Celle-ci est ainsi accessible aux programmeurs qui veulent disposer des fonctionnalités d'accès au réseau dans leurs programmes. Des interfaces ont été créées dans de nombreux langages (<a href="C%2B%2B" title="C++">C++</a>, <a href="Java_(langage)" title="Java (langage)">Java</a>, <a href="Framework_.NET" class="mw-redirect" title="Framework .NET">.NET</a>, <a href="Perl_(langage)" title="Perl (langage)">Perl</a>, <a href="PHP" title="PHP">PHP</a>, <a href="Ruby" title="Ruby">Ruby</a>...).
</p><p>La bibliothèque supporte notamment les protocoles <a href="Protocole_DICT" title="Protocole DICT">DICT</a>, file, <a href="File_Transfer_Protocol" title="File Transfer Protocol">FTP</a>, <a href="File_Transfer_Protocol_Secure" title="File Transfer Protocol Secure">FTPS</a>, <a href="Gopher" title="Gopher">Gopher</a>, <a href="Hypertext_Transfer_Protocol" title="Hypertext Transfer Protocol">HTTP</a>, <a href="HyperText_Transfer_Protocol_Secure" class="mw-redirect" title="HyperText Transfer Protocol Secure">HTTPS</a>, <a href="Internet_Message_Access_Protocol" title="Internet Message Access Protocol">IMAP</a>, IMAPS, <a href="Lightweight_Directory_Access_Protocol" title="Lightweight Directory Access Protocol">LDAP</a>, LDAPS, <a href="Post_Office_Protocol" title="Post Office Protocol">POP3</a>, POP3S, <a href="Real_Time_Streaming_Protocol" title="Real Time Streaming Protocol">RTSP</a>, <a href="Secure_copy" title="Secure copy">SCP</a>, <a href="SSH_File_Transfer_Protocol" title="SSH File Transfer Protocol">SFTP</a>, <a href="Server_Message_Block" title="Server Message Block">SMB</a>, SMBS, <a href="Simple_Mail_Transfer_Protocol" title="Simple Mail Transfer Protocol">SMTP</a>, SMTPS, <a href="Telnet" title="Telnet">Telnet</a> et <a href="Trivial_File_Transfer_Protocol" title="Trivial File Transfer Protocol">TFTP</a>.
</p><p>Le support d'<a href="InterPlanetary_File_System" title="InterPlanetary File System">IPFS</a> est ajouté dans le code le <time class="nowrap" datetime="2023-09-23" data-sort-value="2023-09-23">23 septembre 2023</time><sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>.
</p><p>L'écriture peut se faire en HTTP en utilisant les commandes POST ou PUT.
</p>

<div class="mw-heading mw-heading2"><h2 id="Exemple">Exemple</h2></div>
<p>Pour obtenir l'<a href="En-t%C3%AAte_(informatique)" class="mw-redirect" title="En-tête (informatique)">en-tête</a> HTTP d'une page&nbsp;:
</p>
<div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span>$<span class="w"> </span>curl<span class="w"> </span>-I<span class="w"> </span>www.example.org
HTTP/1.1<span class="w"> </span><span class="m">200</span><span class="w"> </span>OK
Accept-Ranges:<span class="w"> </span>bytes
Cache-Control:<span class="w"> </span>max-age<span class="o">=</span><span class="m">604800</span>
Content-Type:<span class="w"> </span>text/html
Date:<span class="w"> </span>Mon,<span class="w"> </span><span class="m">07</span><span class="w"> </span>Mar<span class="w"> </span><span class="m">2016</span><span class="w"> </span><span class="m">11</span>:21:41<span class="w"> </span>GMT
Etag:<span class="w"> </span><span class="s2">"359670651+gzip"</span>
Expires:<span class="w"> </span>Mon,<span class="w"> </span><span class="m">14</span><span class="w"> </span>Mar<span class="w"> </span><span class="m">2016</span><span class="w"> </span><span class="m">11</span>:21:41<span class="w"> </span>GMT
Last-Modified:<span class="w"> </span>Fri,<span class="w"> </span><span class="m">09</span><span class="w"> </span>Aug<span class="w"> </span><span class="m">2013</span><span class="w"> </span><span class="m">23</span>:54:35<span class="w"> </span>GMT
Server:<span class="w"> </span>ECS<span class="w"> </span><span class="o">(</span>atl/FC90<span class="o">)</span>
X-Cache:<span class="w"> </span>HIT
x-ec-custom-error:<span class="w"> </span><span class="m">1</span>
Content-Length:<span class="w"> </span><span class="m">1270</span>
</pre></div>
<div class="mw-heading mw-heading2"><h2 id="Références"><span id="R.C3.A9f.C3.A9rences"></span>Références</h2></div>
<div class="references-small decimal" style=""><div class="mw-references-wrap"><ol class="references">
<li id="cite_note-wikidata-72425e0f544fd793a021efb629636e9da76a4725-1"><span class="mw-cite-backlink"><a href="#cite_ref-wikidata-72425e0f544fd793a021efb629636e9da76a4725_1-0">↑</a> </span><span class="reference-text"><span class="ouvrage" id="Stenberg"><span class="ouvrage" id="Daniel_Stenberg"><abbr class="abbr indicateur-langue" title="Langue : anglais">(en)</abbr> Daniel Stenberg, «&nbsp;<a rel="nofollow" class="external text" href="https://daniel.haxx.se/blog/2026/04/29/curl-8-20-0/"><cite style="font-style:normal;" lang="en"><span class="lang-en" lang="en">curl 8.20.0</span></cite></a>&nbsp;», <time class="nowrap" datetime="2026-04-29" data-sort-value="2026-04-29">29 avril 2026</time> <small style="line-height:1em;">(consulté le <time class="nowrap" datetime="2026-04-29" data-sort-value="2026-04-29">29 avril 2026</time>)</small></span></span></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2">↑</a> </span><span class="reference-text"><span class="ouvrage">«&nbsp;<a rel="nofollow" class="external text" href="https://github.com/curl/curl/commit/65b563a96a226649ba12cb1ec7b5c4c538ec1c08"><cite style="font-style:normal;">curl: add support for the IPFS protocols</cite></a>&nbsp;», sur <span class="italique">Curl sur <a href="Github" class="mw-redirect" title="Github">Github</a></span></span></span>
</li>
</ol></div>
</div>
<div class="mw-heading mw-heading2"><h2 id="Annexes">Annexes</h2></div>
<style data-mw-deduplicate="TemplateStyles:r194021218">
/* start https://fr.wikipedia.org/ */


.mw-parser-output .autres-projets>.titre{text-align:center;margin:0.2em 0}.mw-parser-output .autres-projets>ul{margin:0;padding:0}.mw-parser-output .autres-projets>ul>li{list-style:none;margin:0.2em 0;text-indent:0;padding-left:24px;min-height:20px;text-align:left;display:block}.mw-parser-output .autres-projets>ul>li>a{font-style:italic}@media(max-width:720px){.mw-parser-output .autres-projets{float:none}}


/* end   https://fr.wikipedia.org/ */
</style>
<div class="mw-heading mw-heading3"><h3 id="Articles_connexes">Articles connexes</h3></div>
<ul><li><a href="Client_HTTP" title="Client HTTP">Client HTTP</a></li></ul>
<div class="mw-heading mw-heading3"><h3 id="Liens_externes">Liens externes</h3></div>
<ul><li><cite class="ouvrage" id="site_officiel" style="font-style: normal;"><span class="wd_p856"><abbr class="abbr indicateur-langue" title="Langue : anglais">(en)</abbr>&nbsp;<a rel="nofollow" class="external text" href="https://curl.se/">Site officiel</a></span></cite></li></ul>
<div class="navbox-container" style="clear:both;">

</div>
<ul id="bandeau-portail" class="bandeau-portail"><li><span class="bandeau-portail-element"><span class="bandeau-portail-icone"><span class="noviewer" typeof="mw:File"><img alt="icône décorative" src="./_assets_/0c70a452f799bfe840676ee341124611/Heckert_GNU_white.svg.png" decoding="async" width="25" height="24" class="mw-file-element" data-file-width="535" data-file-height="523" loading="lazy"></span></span> <span class="bandeau-portail-texte">Portail des logiciels libres</span> </span></li> <li><span class="bandeau-portail-element"><span class="bandeau-portail-icone"><span class="noviewer" typeof="mw:File"><img alt="icône décorative" src="./_assets_/0c70a452f799bfe840676ee341124611/Circle-icons-email.svg.png" decoding="async" width="24" height="24" class="mw-file-element" data-file-width="512" data-file-height="512" loading="lazy"></span></span> <span class="bandeau-portail-texte">Portail d’Internet</span> </span></li> <li><span class="bandeau-portail-element"><span class="bandeau-portail-icone"><span class="noviewer" typeof="mw:File"><img alt="icône décorative" src="./_assets_/0c70a452f799bfe840676ee341124611/Circle-icons-computer.svg.png" decoding="async" width="24" height="24" class="mw-file-element" data-file-width="512" data-file-height="512" loading="lazy"></span></span> <span class="bandeau-portail-texte">Portail de l’informatique</span> </span></li>                  </ul></div><!--htdig_noindex--><div><div class="zim-footer">
    Cet article est issu de <a class="external text" title="Dernière modification le 2026-03-27" href="https://fr.wikipedia.org/wiki/?title=CURL&amp;oldid=234530413">Wikipédia</a>. Sauf mention contraire, le texte est disponible sous <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.fr">Creative Commons Attribution-Share Alike 4.0</a>. Des conditions supplémentaires peuvent s’appliquer aux fichiers multimédias.
</div>
</div><!--/htdig_noindex--></div>
            </div>
          </main>
        </div>
      </div>
    </div>
     <script src="./_webp_/webpHandler.js"></script>
  

</body></html>