Add this cURL param. That is because , Google runs on Secure HTTP.
cURL
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);