can it be done mate? have you done? i dont know how to use curlPush sborg via cURL and everything will be fineAutomation ftw <3
is it easy to do?
can it be done mate? have you done? i dont know how to use curlPush sborg via cURL and everything will be fineAutomation ftw <3
can it be done mate? have you done? i dont know how to use curl
is it easy to do?
$postLoginFields = array(
'access_login' => 'user',
'access_password' => 'password',
'access_duration' => '720'
);
$postLoginConfig = array(
CURLOPT_URL => 'http://yoursborghosturl/index.php',
CURLOPT_COOKIEJAR => './cookies.txt',
CURLOPT_COOKIEFILE => './cookies.txt',
CURLOPT_COOKIESESSION => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_AUTOREFERER => true,
CURLOPT_POSTFIELDS => $postLoginFields
);
$ch = curl_init();
curl_setopt_array($ch, $postLoginConfig);
if(curl_exec($ch)) echo '<b>Login successfully!</b>';
curl_close($ch);
so this is the curl code to login to sborg?