Comment Obtenir le Corps du contenu de HTTPS à l'aide de CURL

Le code suivant permet de récupérer le corps du contenu d'une url (extrait à l'aide de CURL en php mais pas en https. Quelqu'un peut-il me dire comment je modifier le code que j'ai besoin d'obtenir les données renvoyées pas seulement l'en-tête.

Du test que j'ai fait ici est le résultat. Vous pouvez voir qu'il a un contenu de longueur, je ne sais pas comment y accéder.

Merci
Stephen

Erreurs: 0

chaîne(1457) "HTTP/1.1 200 OK Date: Sat, 01 Aug 2009 06:32:11 GMT Server: Apache/1.3.41 (Darwin) PHP/5.2.4 mod_ssl/2.8.31 OpenSSL/0.9.7 l Cache-Control: max-age=60 Expire le: Sat, 01 Aug 2009 06:33:11 GMT Last-Modified: Thu, 23 Nov 2006 17:44:53 GMT ETag: "97d620-44b-4565de15" Accept-Ranges: bytes Content-Length: 1099 Connexion: close Content-Type: text/html "

<?php

$curl_handle=curl_init();

$username = "";
$password = "";

$fullurl = "http://www.queensberry.com";
   $ch = curl_init();
   curl_setopt($ch, CURLOPT_HEADER, 1);
   curl_setopt($ch, CURLOPT_VERBOSE, 1);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
   curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
   curl_setopt($ch, CURLOPT_FAILONERROR, 0);
   curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
   curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
   curl_setopt($ch, CURLOPT_URL, $fullurl);

   $returned = curl_exec($ch);

   curl_close ($ch);
   var_dump($returned);


?>

OriginalL'auteur Stephen Baugh | 2009-08-01