i try to return the header response from specific url using CURL function
this is my code
$strURL = "http://162.253.132.165";
$resCurl = curl_init();
//set URL and other appropriate options
curl_setopt($resCurl, CURLOPT_URL, $strURL);
curl_setopt($resCurl, CURLOPT_HEADER, true);
curl_setopt($resCurl, CURLOPT_NOBODY, true);
curl_setopt($resCurl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($resCurl, CURLOPT_FOLLOWLOCATION, true);
//get the headers
$strHeaders = curl_exec($resCurl);
//close cURL
curl_close($resCurl);
echo $strHeaders;
the problem is that i need only the success response output for 200 OK
and i use this for SSL and https protocols how i can do that ?