Results 1 to 2 of 2
-
26th Jan 2012, 11:00 PM #1OPProbation
PHP - Getting premium link on UPTOBOX
Hi, i'm coding a script for checking premium links on UPTOBOX.
(I tray too for UPLOADING and DEPOSITFILES and I have the same problems).
The code :
PHP Code:<?php
session_start();
$cookie='';
$c = curl_init() ;
curl_setopt($c, CURLOPT_URL, "http://uptobox.com/ruke1v5m2xr3");
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_HEADER, 1);
curl_setopt($c,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10');
curl_setopt($c, CURLOPT_REFERER,"http://www.uptobox.com");
curl_setopt($c, CURLOPT_COOKIE,$cookie);
$page_c = curl_exec($c);
// To see the premium link on the headers
$pos1=strpos($page_c,'Location: ')+10;
$page_c=substr($page_c,$pos1);
$pos2=strpos($page_c,'Transfer');
$liendeb=trim(substr($page_c,0,$pos2));
//echo $liendeb;
Now, if I do :
PHP Code:header("Location: ".$liendeb);
If I do :
PHP Code:header("Content-disposition: attachment; filename=Film de fou.avi");
header("Accept-Ranges: bytes");
header("Content-Type: application/force-download");
header("Content-Transfer-Encoding: binary\n");
header("Content-Length: 1489649524");
header("Pragma: no-cache");
header("Keep-Alive: timeout=15, max=100");
header("Expires: 0");
readfile($liendeb);
And if I do
PHP Code:$c = curl_init() ;
curl_setopt($c, CURLOPT_URL, $liendeb);
curl_setopt($c, CURLOPT_HTTPHEADER, array("Accept-Ranges: bytes", "Content-Length: 1489649524", "Content-Disposition: attachment", "Content-Type: application/octet-stream", "Content-Transfer-Encoding: binary", "Keep-Alive: timeout=15, max=100", "Connection: Keep-Alive"));
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10');
curl_setopt($c, CURLOPT_COOKIE,'$cookie);
$page_c = curl_exec($c);
echo $page_c;
If somebody know how to do, it will be very nice.slash028 Reviewed by slash028 on . PHP - Getting premium link on UPTOBOX Hi, i'm coding a script for checking premium links on UPTOBOX. (I tray too for UPLOADING and DEPOSITFILES and I have the same problems). The code : <?php session_start(); $cookie=''; Rating: 5
-
27th Jan 2012, 01:16 AM #2MemberWebsite's:
sborg.usOkay wait, I'm still thinking what you're trying to do!
Store the cookie in a file after you login -> So that it can be used later
Do a simple curl with the cookie file -> To get the Premium link
Download the file using curl, the premium link and cookie file
What's with all those redirects?[meh]
V3g3ta | Halcyon | Abhi
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Uptobox.com : good file hoster
By #KiR in forum File Host DiscussionReplies: 12Last Post: 12th Nov 2012, 06:31 AM -
UpToBox -> other sites (RU)
By thedossetup in forum File Host DiscussionReplies: 0Last Post: 29th Sep 2012, 01:08 PM -
Any filehost similar with Uptobox
By dewaforex in forum File Host DiscussionReplies: 5Last Post: 21st Sep 2012, 04:17 AM -
[Other] Rapidleechd.info - Rapidleech Premium Link Generator with 20+ Premium Accounts
By rapidleechd in forum ArchiveReplies: 3Last Post: 23rd Mar 2012, 03:00 AM -
Free & Premium Rapidshare Premium Link Generator!
By CEO in forum Useful SitesReplies: 7Last Post: 9th Jun 2010, 08:29 PM
themaCreator - create posts from...
Version 3.48 released. Open older version (or...