5 include_once
'./Services/WebServices/Curl/classes/class.ilCurlConnection.php';
6 include_once
'./Services/WebServices/Curl/classes/class.ilCurlConnectionException.php';
42 $this->user = $a_user;
47 $this->pass = $a_pass;
97 $this->ical = $this->
call();
98 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.$this->ical);
109 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
112 include_once(
'./Services/Calendar/classes/class.ilCalendarEntry.php');
118 include_once
'./Services/Calendar/classes/iCal/class.ilICalParser.php';
135 $this->curl->setOpt(CURLOPT_SSL_VERIFYPEER, 0);
136 $this->curl->setOpt(CURLOPT_SSL_VERIFYHOST, 0);
137 $this->curl->setOpt(CURLOPT_RETURNTRANSFER, 1);
139 $this->curl->setOpt(CURLOPT_FOLLOWLOCATION, 1);
140 $this->curl->setOpt(CURLOPT_MAXREDIRS, 3);
144 $this->curl->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
145 $this->curl->setOpt(CURLOPT_USERPWD,$this->user.
':'.$this->pass);
156 if(substr($this->
getUrl(), 0, 6) ==
'webcal')
158 $purged = preg_replace(
'/webcal/',
'http', $this->
getUrl(), 1);
159 $this->url = $purged;
160 $GLOBALS[
'ilLog']->write(__METHOD__.
': Using new url: '. $this->getUrl());
174 $res = $this->curl->exec();