Hello,
I'm develloping an upload function for 2shared using curl but i don't manage to use the login cookie it seems that it well login but after it sill ask me to login.

PHP Code: 
$url 'http://www.2shared.com/login.jsp';
$ch curl_init($url);
curl_setopt($chCURLOPT_FRESH_CONNECTtrue);
curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
curl_setopt($chCURLOPT_NOBODYtrue);
curl_setopt($chCURLOPT_COOKIESESSIONtrue);
curl_setopt($chCURLOPT_POSTtrue);
curl_setopt($chCURLOPT_POSTFIELDS, array(
'login' => 'login',
'password' => 'pass'
));
curl_setopt($chCURLOPT_COOKIEJAR$cookies_file);
curl_exec($ch);
curl_close($ch); 
If someone can Help me it would be great

Thanks
onyri Reviewed by onyri on . 2Shared longin function Hello, I'm develloping an upload function for 2shared using curl but i don't manage to use the login cookie it seems that it well login but after it sill ask me to login. $url = 'http://www.2shared.com/login.jsp'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_FRESH_CONNECT, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_COOKIESESSION, true); Rating: 5