You are here

function _eloqua_cron_get_curl_handle in Eloqua 6

Returns a curl handle

Return value

object

1 call to _eloqua_cron_get_curl_handle()
_eloqua_cron_get_curl_resource in ./eloqua.cron.inc
Returns a configured Curl Resource for use

File

./eloqua.cron.inc, line 11

Code

function _eloqua_cron_get_curl_handle() {
  $ch = curl_init();
  if (empty($ch)) {
    $message = t('Unable to open curl.  Skipping message.');
    $params = array();
    watchdog('eloqua', $message, $params, WATCHDOG_ERROR);
    $ch = NULL;
  }
  return $ch;
}