https://www.r10.net/php/688792-curl-i...si-yapmak.html
https://www.r10.net/php/687313-curl-i...pal-login.html
https://www.r10.net/php/679494-hf-aut...ison-post.html
http://www.phpogreniyorum.com/Php-De...iyonu-ile.html


daha öneden yaptıgım bir kaç örnek incele istersen en son koydugum ayrıntılı anlatımdır

bu şekildede login olursun
<?php
$id = "111";
$pw = "112233";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://site.net/login");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // Allow redirection
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie");
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=$id&password=$pw");
curl_exec($ch);
curl_close($ch);
?>