TheCracker
02-22-2012, 11:23 PM
hello,
i'm trying to add uploading.com to my website (www.downmasters.com) but the problem they have different way, i'm having trouble logging in and getting correct cookies.
this is my code, i got most of it from rapidleech
$tid=str_replace(".","12",microtime(true));
$link = "http://uploading.com/general/login_form/?JsHttpRequest=".$tid."-xml";
$post=array();
$post["email"] = 'xx';
$post["password"]= 'xx';
if ('up.txt') unlink('up.txt');
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1');
curl_setopt($ch, CURLOPT_REFERER, 'http://uploading.com/');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'up.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'up.txt');
$page = curl_exec($ch);
curl_close($ch);
i will give premium downmasters account which will enable you to download from 4 files hosts and others will be added soon
i'm trying to add uploading.com to my website (www.downmasters.com) but the problem they have different way, i'm having trouble logging in and getting correct cookies.
this is my code, i got most of it from rapidleech
$tid=str_replace(".","12",microtime(true));
$link = "http://uploading.com/general/login_form/?JsHttpRequest=".$tid."-xml";
$post=array();
$post["email"] = 'xx';
$post["password"]= 'xx';
if ('up.txt') unlink('up.txt');
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1');
curl_setopt($ch, CURLOPT_REFERER, 'http://uploading.com/');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'up.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'up.txt');
$page = curl_exec($ch);
curl_close($ch);
i will give premium downmasters account which will enable you to download from 4 files hosts and others will be added soon