<?php
$adres = "http://app.xsinav.com/subject.php?subject_id=55";
$mail = 'user';
$sifre = 'pas';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://app.xsinav.com/login.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,'user=adin&password=sifren&login=++Giri%C5%9F++&submitted=TRUE');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Opera/9.0 (Windows NT 5.1; U; en; (R1 1.5))");
curl_setopt($ch, CURLOPT_URL, $adres);
curl_setopt($ch, CURLOPT_POST, 0);
$gir = curl_exec($ch);
curl_close($ch);
?>