36 include_once(
'Services/WebServices/Curl/classes/class.ilCurlConnectionException.php');
55 if(!self::_isCurlExtensionLoaded())
70 if(!function_exists(
'curl_init'))
84 public final function init()
86 if(strlen($this->url))
88 $this->ch = curl_init($this->url);
92 $this->ch = curl_init();
98 if(curl_errno($this->ch))
115 public final function setOpt($a_option,$a_value)
117 if(!@curl_setopt($this->ch,$a_option,$a_value))
133 if((@
$res = curl_exec($this->ch)) ===
false)
135 if(strlen(
$err = curl_error($this->ch)))
159 $res = curl_getinfo($this->ch,$opt);
163 $res = curl_getinfo($this->ch);
176 if($this->ch != null)
178 curl_close($this->ch);