Hi All,
First, thank you for the Dev Team for this nice component.
I'm trying to create a php script to login to my joomla site.
[code]
$ch = curl_init();
$curlConfig = array(
CURLOPT_URL => "
mysite.com/index.php/register/login
",
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => array(
'username' => 'TS002',
'passwd' => 'TS002',
)
);
curl_setopt_array($ch, $curlConfig);
$result = curl_exec($ch);
// Get logged in cookie and pass it to the browser
preg_match('/^Set-Cookie: (.*?);/m', $result, $m);
$cookie = explode('=', $m[1]);
setcookie($cookie[0], $cookie[1]);
header("location:
mysite.com/index.php
");
[code]
can someone please help me to fire the CB Loging module using CURL
Thank you.
Fernando