public static function loadCurlConstantsTable()
{
if (empty(self::$curlConstantsTable)) {
$constants = get_defined_constants(true);
foreach ($constants['curl'] as $key => $value) {
if (strpos($key, 'CURLOPT_') === 0) {
$key = str_ireplace(array('CURLOPT', '_'), '', $key);
self::$curlConstantsTable[$key] = $value;
}
}
}
return self::$curlConstantsTable;
}