Hocam aşağıda ki kodu dener misiniz. Local de çalışıyorsanız sertifika hatası verirse cacert.pem dosyasına ihtiyacınız olabilir. Google ufak bi aramayla cacert.pem dosyasına da erişebilirsiniz.
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://www.bloggernity.com/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
//CURLOPT_CAINFO => 'cacert.pem',
CURLOPT_COOKIE => 'PHPSESSID=4o3c3d8n3h3vnj9ctpsgihgr45; path=/; domain=.www.bloggernity.com; Expires=Tue, 19 Jan 2038 03:14:07 GMT; region_id=tr; path=/; domain=.www.bloggernity.com; Expires=Sun, 18 Aug 2019 21:49:10 GMT; language_id=1%0D; path=/; domain=.www.bloggernity.com; Expires=Sun, 18 Aug 2019 21:49:10 GMT;',
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
çok teşekkür ediyorum. r10+