Yükleniyor...

Curl ile Sitelere Login Olmak

Curl ile Sitelere Login Olmak
curl_site_login
<?php
$id = "xXx";
$pw = "xXx";

$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, "username=".$id."&password=".$pw."&submit=Giris");
curl_setopt($ch, CURLOPT_URL, "http://www.login olacağınız sitenin login sayfası/takelogin.php");
curl_setopt($ch, CURLOPT_URL, "http://www.tercihe göre login olduktan sonra gidilecek sayfa/browse.php");

echo curl_exec($ch);

curl_close($ch);
?>
  • SHARE

Tartışma




ya da
CAPTCHA Images