thirdparty web sitesine erişmek için nasıl

0 Cevap php
//$out = fopen($localfilename, 'wb'); 
$url ="some https site name";
$ch = curl_init(); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
//curl_setopt($ch, CURLOPT_FILE, $out); 
curl_setopt($ch, CURLOPT_HEADER, 0); 
curl_setopt($ch, CURLOPT_URL, $url); 
curl_setopt($ch, CURLOPT_USERPWD, "sar:pas"); 
echo curl_exec($ch); 
return $ch;
//curl_close($ch); 
//fclose($out); 

i thirdparty web sitesine otomatik giriş kodu ile çalıştı

$url="some url name"; in the username password i used curl_setopt($ch, CURLOPT_USERPWD, "sar:pas"); i alread fetech the username password from database table but i am not using file & i commented the belowed two lines the code $out = fopen($localfilename, 'wb'); curl_setopt($ch, CURLOPT_FILE, $out);

i have tried with the above code its not working in https site help me in this senorio

by saravanamuthu saravanamuthu@yahoo.com

0 Cevap