AdsenseKolik adlı üyeden alıntı: mesajı görüntüle
Ben söylediklerini https ile başlayan bir sitede denedim olmadı maalesef.Acaba https de birşey farkediyor mu?
Bir de giriş yapmazsa uyarı versin bunu nasıl yapacağım.Çünkü cookie.txt dosyasına birşey yazmıyor.Yoksa giriş mi yapamıyor bilmiyorum.

$ch = curl_init();
$cookie_new = fopen ("cookie", "w");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_URL, "https://örneksite");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_WRITEHEADER, $cookie_new);
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie");
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie");
$say = curl_exec($ch);
curl_close($ch);

Ben bu şekilde girdim ve post verisini de kullanacaksan çalışıyor bende.

"cookie "diye dosyayı kendi oluşturdu.