Tester la présence de cURL : Différence entre versions

De Vulgum Techus
Aller à : Navigation, rechercher
Ligne 1 : Ligne 1 :
  '''[[Lien court]]''' vers cette page : http://vt.cx/TpcU
+
<!-- Links checked 05/04/19 -->
  '''[[QR code]]''' vers cette page : http://vt.cx/TpcU.qr
+
[[Catégorie:Linux]]
 +
  '''[[Lien court]]''' vers cette page : https://vt.cx/TpcU
 +
  '''[[QR code]]''' vers cette page : https://vt.cx/TpcU.qr
 
<html>
 
<html>
<script type="text/javascript"><!--
+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
google_ad_client = "ca-pub-3341840374417340";
+
<!-- VT2 -->
/* VT2 */
+
<ins class="adsbygoogle"
google_ad_slot = "6349432125";
+
    style="display:inline-block;width:468px;height:60px"
google_ad_width = 468;
+
    data-ad-client="ca-pub-3341840374417340"
google_ad_height = 60;
+
    data-ad-slot="6349432125"></ins>
//-->
+
<script>
</script>
+
(adsbygoogle = window.adsbygoogle || []).push({});
<script type="text/javascript"
+
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
+
 
</script>
 
</script>
 +
</html>
 
</html>
 
</html>
  

Version du 5 avril 2019 à 22:40

Lien court vers cette page : https://vt.cx/TpcU
QR code vers cette page : https://vt.cx/TpcU.qr

</html>

Mots-clé

Linux

Méthode 1

# which  curl -> affiche le chemin d'accès (en général /usr/bin/curl)

Méthode 2

# curl -V -> affiche la version complète installée

Méthode 3

Créer un fichier PHP nommé testecurl.php contenant :

<?php
# Teste si cURL est opérationnel 
echo '<pre>';
var_dump(curl_version());
echo '</pre>';
?>

L'exécution de testecurl.php donne la version installée sous la forme :

 ["version"]=>
 string(6) "7.15.5" (où 7.15.5) est la version de cURL

Windows

'curlx' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
  • Dans le cas où cURL est installé, s'affiche le numéro de version et la liste des protocoles pris en charge par le programme

Commentaires

blog comments powered by Disqus