Jump to content

IPB forum login using curl help


netblaser

Recommended Posts

i need help with login to ipb using cur

 

 

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,$url);

curl_setopt($ch, CURLOPT_followlocation, 0);

curl_setopt($ch, CURLOPT_POST, 4);

curl_setopt($ch, CURLOPT_POSTFIELDS,"username=*****&password=****&rememberMe=1");

curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);

curl_setopt($ch,CURLOPT_COOKIEJAR,"cookie1.txt");

$result= curl_exec ($ch);

curl_close ($ch);

echo $result;

 

this is the one which im using but not working properly its not getting logined..please help .

Link to comment
https://forums.phpfreaks.com/topic/244251-ipb-forum-login-using-curl-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.