I am using a hook_cron (mymodule_cron) in my custom module, but would like to know whether the cron run is successful or not and has sent the data using CURL, and from there, update a specific column value in my sql table. How to get this status?
Part of my codes:
$options=array(
CURLOPT_URL => $urlCron,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => false
);
$CURL=curl_init();
curl_setopt_array($CURL,$options);
$content=curl_exec($CURL);
curl_close($CURL);