Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-22-2012, 11:23 PM   PM User | #1
TheCracker
New Coder

 
Join Date: Sep 2010
Posts: 65
Thanks: 4
Thanked 0 Times in 0 Posts
TheCracker is an unknown quantity at this point
uploading.com login page (i'll give one free account for help)

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
Code:
$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
TheCracker is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:10 PM.


Advertisement
Log in to turn off these ads.