Cevabınız için teşekkür ederim
<?php
$id = "xxxxxxx";
$pw = "xxxxxxx";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "login=".$id."&password=".$pw."&submit=Giris");
curl_setopt($ch, CURLOPT_URL, "http://ogrenci.izmir.edu.tr/session/login");
Sanarım bu kodlarla giriş yapmayı başardım girişten sonra içerideki verileri ne ile çekebilirim. Kodlanma şekli json ile direk json decode yapıp erişebilir miyim?
bilmiyorum, geri ne dönüyor, cookie tutturup yönlendirme yapabilir, ajaxla bi yerden veri çektirebilir daha bi sürü şey, giriş yapınca noluyor?