Activity Stream
48,167 MEMBERS
6969 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
    Member
    Website's:
    WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro

    Default need help in filesonic/wupload download using curl

    hi guys,i need help in filesonic or wupload download using curl,as other filehost are using same method so i am able to make them but for filesonic i am not able to do,when trying to download file from fso its stores the filename in header,i need to fetch the filename from header and save the downloaded file with that name,so plz help me in that.
    saninokia Reviewed by saninokia on . need help in filesonic/wupload download using curl hi guys,i need help in filesonic or wupload download using curl,as other filehost are using same method so i am able to make them but for filesonic i am not able to do,when trying to download file from fso its stores the filename in header,i need to fetch the filename from header and save the downloaded file with that name,so plz help me in that. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    You must be doing so with a premium account, right?

    Edit: It must be using premium account

    Try this, just did with filesonic api

    PHP Code: 
    <?php

    $username 
    ''//Add your username here
    $password ''//Add your password here

    $urls = array('http://www.filesonic.com/file/156544'); //Add all the urls here
    $regex '|/file/(([a-z][0-9]+/)?[0-9]+)(/.*)?$|'// Heres the regex from api

    foreach($urls AS $url) {
        
    $matches = array();
        
    preg_match($regex$url$matches);
        if (!isset(
    $matches[1])) continue;
        
    $idedlink str_replace('/''-'$matches[1]) . ','// Add the id's
        
    echo file_get_contents("http://api.filesonic.com/link?method=getDownloadLink&u=$username&p=$password&ids=$idedlink")
    }

    ?>
    Inside foreach, you can parse the url

    I dont have any premium account right now, therefore cant complete the whole code

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Uploading to FileSonic Using cURL
    By Gaurav in forum Web Development Area
    Replies: 71
    Last Post: 14th Jan 2012, 03:00 AM
  2. how to curl and proxy download
    By musa in forum Web Development Area
    Replies: 18
    Last Post: 29th Dec 2011, 03:48 AM
  3. [PHP] A simpler way to log into wUpload using PHP and CURL
    By _Vick in forum Web Development Area
    Replies: 8
    Last Post: 29th Nov 2011, 12:17 PM
  4. [PHP] Log into WUpload using CURL
    By _Vick in forum Web Development Area
    Replies: 0
    Last Post: 25th Nov 2011, 06:58 AM
  5. How can I download from filesonic using curl ?
    By shounak2011 in forum Web Application/Script Support
    Replies: 0
    Last Post: 17th Sep 2011, 07:17 AM

Tags for this Thread

BE SOCIAL