Results 1 to 4 of 4
-
9th Aug 2011, 06:23 PM #1OPMemberWebsite's:
XtremeSharez.orgCurl 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§ion=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§ion=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
-
10th Aug 2011, 04:56 PM #2Respected MemberWebsite's:
DL4Everything.com Soft2050.inEmm! 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
-
12th Aug 2011, 03:20 AM #3MemberWebsite's:
tv-release.net
you have to add the security token ..
-
23rd Aug 2011, 06:33 AM #4MemberWebsite's:
ExploringPC.com DedicatedSeedboxHosting.comYou'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.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Curl to Uploaded.to
By skinner in forum Web Development AreaReplies: 18Last Post: 12th Feb 2012, 07:05 AM -
Need Help In cURL Progressbar
By saninokia in forum Web Development AreaReplies: 20Last Post: 20th Jan 2012, 08:14 AM -
Curl url file (I need help)
By spanero in forum Web Development AreaReplies: 3Last Post: 22nd Dec 2011, 04:23 PM -
cURL Pro Coders.
By kohkindachi in forum Completed TransactionsReplies: 2Last Post: 5th Dec 2010, 12:30 AM -
How to install CURL in WHM
By ken in forum Technical Help Desk SupportReplies: 2Last Post: 22nd Sep 2010, 01:46 PM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...