$curl_options = array(CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => false,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => "",
CURLOPT_USERAGENT => "",
CURLOPT_AUTOREFERER => true,
CURLOPT_CONNECTTIMEOUT => 120,
CURLOPT_TIMEOUT => 120,
CURLOPT_MAXREDIRS => 10,
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_SSL_VERIFYHOST => 2,
CURLOPT_VERBOSE => 1);
$curl_session=curl_init($url);
curl_setopt_array($curl_session,$curl_options);
$curl_content=curl_exec($curl_session);
$curl_error=curl_errno($curl_session);
$curl_error_message=curl_error($curl_session);
$curl_header=curl_getinfo($curl_session);
curl_close($curl_session);
var_dump($curl_error_message);
var_dump($curl_content);