Activity Stream
48,167 MEMBERS
61760 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Probation

    Default 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($cCURLOPT_URL"http://uptobox.com/ruke1v5m2xr3");
    curl_setopt($cCURLOPT_RETURNTRANSFER1);
    curl_setopt($cCURLOPT_HEADER1);
    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($cCURLOPT_REFERER,"http://www.uptobox.com");
    curl_setopt($cCURLOPT_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;
    For the moment, everything's right, I can see the premium link.

    Now, if I do :
    PHP Code: 
    header("Location: ".$liendeb); 
    I'm redirected on an error page in UPTOBOX website

    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); 
    It's downloading the debrid file, OK, but "readfile()" use my bandwith

    And if I do

    PHP Code: 
    $c curl_init() ;
    curl_setopt($cCURLOPT_URL$liendeb);
    curl_setopt($cCURLOPT_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($cCURLOPT_RETURNTRANSFER1);
    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($cCURLOPT_COOKIE,'$cookie);
    $page_c = curl_exec($c);
    echo $page_c; 
    I have a 400 Bad Request

    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

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    sborg.us
    Okay 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Uptobox.com : good file hoster
    By #KiR in forum File Host Discussion
    Replies: 12
    Last Post: 12th Nov 2012, 06:31 AM
  2. UpToBox -> other sites (RU)
    By thedossetup in forum File Host Discussion
    Replies: 0
    Last Post: 29th Sep 2012, 01:08 PM
  3. Any filehost similar with Uptobox
    By dewaforex in forum File Host Discussion
    Replies: 5
    Last Post: 21st Sep 2012, 04:17 AM
  4. Replies: 3
    Last Post: 23rd Mar 2012, 03:00 AM
  5. Replies: 7
    Last Post: 9th Jun 2010, 08:29 PM

Tags for this Thread

BE SOCIAL