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

Results 1 to 4 of 4
  1.     
    #1
    Member
    Website's:
    XtremeSharez.org

    Default Curl IPB help

    i need help with curl to login to ipb forum board ..please check ..problem with the code below ..the user is not logined in the output ..displays the login page

    Code: 
    <?php
    $User="*****";
    $Pass="******";
    $url="http:///****.com/forums/index.php?app=core&module=global&section=login";
    $ch = curl_init($url);
    @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    @curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, "username=".$User."&password=".$Pass."");
    curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
    curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
    $result= curl_exec ($ch);
    curl_close ($ch);
    print $result;
    ?>
    xwarlordx Reviewed by xwarlordx on . Curl IPB help i need help with curl to login to ipb forum board ..please check ..problem with the code below ..the user is not logined in the output ..displays the login page <?php $User="*****"; $Pass="******"; $url="http:///****.com/forums/index.php?app=core&module=global&section=login"; $ch = curl_init($url); @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); @curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); Rating: 5


  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Emm! It must be ipb 3.1.x + ? right?

    You need to get the security tokens first

    Curl the page without posting anything
    Then parse the security tokens (use LiveHttpHeaders or HTTP Fox to track)
    Then post the securitytokens along with username and password

    Security tokens are requireds to login in ipb 3.1.x

  4.     
    #3
    Member
    Website's:
    tv-release.net

    you have to add the security token ..



  5.     
    #4
    Member
    Website's:
    ExploringPC.com DedicatedSeedboxHosting.com
    You're missing a lot of security tokens.
    If you want, you can buy the IPB auto poster for 20 USD. It works on any IPB version.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Curl to Uploaded.to
    By skinner in forum Web Development Area
    Replies: 18
    Last Post: 12th Feb 2012, 07:05 AM
  2. Need Help In cURL Progressbar
    By saninokia in forum Web Development Area
    Replies: 20
    Last Post: 20th Jan 2012, 08:14 AM
  3. Curl url file (I need help)
    By spanero in forum Web Development Area
    Replies: 3
    Last Post: 22nd Dec 2011, 04:23 PM
  4. cURL Pro Coders.
    By kohkindachi in forum Completed Transactions
    Replies: 2
    Last Post: 5th Dec 2010, 12:30 AM
  5. How to install CURL in WHM
    By ken in forum Technical Help Desk Support
    Replies: 2
    Last Post: 22nd Sep 2010, 01:46 PM

Tags for this Thread

BE SOCIAL