Merhaba arkadaşlar ; Aşağıdaki kodlar ile hotfile.com a login olmaya çalışıyorum, Ama echoladığı sayfada login olmuyor. Bi incelerseniz sevinirim.

<?php
$uname = "******";
$pass = "********";
$ch = curl_init();
$cookie_new = fopen ("cookie.txt", "w");
curl_setopt($ch, CURLOPT_URL, "http://www.hotfile.com/login.php");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
curl_setopt($ch, CURLOPT_POST, 1); 
curl_setopt($ch, CURLOPT_POSTFIELDS,"returnto=/&user=".$uname."&pass=".$pass);
curl_setopt ($ch, CURLOPT_WRITEHEADER, $cookie_new);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); 
$icerik = curl_exec($ch);
echo $icerik;
fclose ($cookie_new); 
curl_close($ch);  
?>

cookie txt ye yazdığı yazı ise ;

HTTP/1.1 302 Found

Cache-Control: no-cache, must-revalidate

Expires: Sat, 26 Jul 1997 05:00:00 GMT

Set-Cookie: auth=63659d81838eb02f6149327c7bdf815ac79625471cf620490032c507b0bb1160; expires=Sat, 14-Jul-2012 13:17:34 GMT; path=/; domain=.hotfile.com

Location: /?cookiecheck=1

Content-type: text/html

Content-Length: 0

Date: Thu, 15 Jul 2010 13:17:34 GMT

Server: lighttpd/1.4.26



HTTP/1.1 200 OK

Cache-Control: no-cache, must-revalidate

Expires: Sat, 26 Jul 1997 05:00:00 GMT

Content-type: text/html

Transfer-Encoding: chunked

Date: Thu, 15 Jul 2010 13:17:34 GMT

Server: lighttpd/1.4.26