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

Results 1 to 3 of 3

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Respected Member

    Default Filesonic curl code not working???

    Hi I have the following code I use for link checkers. It works on most sites but filesonic.com return 200 ok but does not check the link. Anyone know what's wrong or have working code for filesonic? Thanks.

    Code: 
    <?php
    	 $ch = curl_init();
    	 $data['redirect'] = '/'; 
    	 $data['links'] = "http://www.filesonic.com/file/25157719/Available.zip\n";
    	curl_setopt($ch, CURLOPT_URL, 'http://filesonic.com/link-checker');
    	curl_setopt($ch, CURLOPT_REFERER, 'http://filesonic.com/link-checker');
    	curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)');
    	curl_setopt($ch, CURLOPT_HTTPHEADER,array("Expect:"));
    	curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 8);
    	curl_setopt($ch, CURLOPT_TIMEOUT, 8);
    	curl_setopt($ch, CURLOPT_HEADER, true);
    	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    	curl_setopt($ch, CURLOPT_POST, 1);
    	curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
    	$page = curl_exec($ch);
    	print  $page ;  
    	curl_close($ch);
    ?>
    Lock Down Reviewed by Lock Down on . Filesonic curl code not working??? Hi I have the following code I use for link checkers. It works on most sites but filesonic.com return 200 ok but does not check the link. Anyone know what's wrong or have working code for filesonic? Thanks. <?php $ch = curl_init(); $data = '/'; $data = "http://www.filesonic.com/file/25157719/Available.zip\n"; curl_setopt($ch, CURLOPT_URL, 'http://filesonic.com/link-checker'); curl_setopt($ch, CURLOPT_REFERER, 'http://filesonic.com/link-checker'); curl_setopt($ch, Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    rapidgen.net
    PHP Code: 
    $ch curl_init();
         
    $data['redirect'] = '/file/15033437/%E6%8C%81%E6%9C%88%E7%9C%9F%E7%94%B1~16%E5%B2%81%E5%87%8C%E8%BE%B1%E6%8F%B4%E4%BA%A4.rar'
         
    $data['links'] = "http://www.filesonic.com/file/15033437/持月真由~16岁凌辱援交.rar\n";
         
    $data['controls[submit]'] = "";
        
    curl_setopt($chCURLOPT_URL'http://www.filesonic.com/link-checker');
        
    curl_setopt($chCURLOPT_REFERER'http://www.filesonic.com/link-checker');
        
    curl_setopt($chCURLOPT_USERAGENT'Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)');
        
    curl_setopt($chCURLOPT_HTTPHEADER,array("Expect:"));
        
    curl_setopt($chCURLOPT_CONNECTTIMEOUT8);
        
    curl_setopt($chCURLOPT_TIMEOUT8);
        
    curl_setopt($chCURLOPT_HEADERtrue);
        
    curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
        
    curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
    curl_setopt($chCURLOPT_POST1);
        
    curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($data));
        
    $page curl_exec($ch);
        print  
    $page ;  
        
    curl_close($ch); 
    I think basically you left out www. in the filesonic domain, which is required.

  4.     
    #3
    Respected Member
    Thanks. Never would have caught it in a million years.

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. Free and working Filesonic, Wupload Leecher
    By Enigmatic in forum Useful Sites
    Replies: 1
    Last Post: 10th Nov 2011, 12:15 AM
  3. 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
  4. need help in filesonic/wupload download using curl
    By saninokia in forum Web Development Area
    Replies: 1
    Last Post: 30th Jul 2011, 04:11 PM
  5. fileserver to filesonic isn;t working
    By i_love_u_love in forum File Host Discussion
    Replies: 7
    Last Post: 12th Apr 2011, 07:07 PM

Tags for this Thread

BE SOCIAL