Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Trouble creating new Ical events from PHP

Messages: 2
Karma: 0
Send a private message to this user
I'm trying to add calendar events via PHP and running into issues getting the event to actually appear.

I can login and see events etc ok.

The path to my "Schedule" calendar is :

If I try and post an event to: uid.ics

I get a 200 (ok) response but nothing appears.

However, if I disregard the last few directories and write an actual Ical file like this, then I get a new Calendar created that uses the UID as it's name: uid.iCal.ics

So the request is working, but obviously I don't want to create a bunch of new calendars for each post.

Does anyone know the correct file path to create a new calendar entry under Schedule?

Pavel Dobry (Kerio)

Messages: 5245
Karma: 251
Send a private message to this user
I think there is a misunderstanding. The /ical URI is for publishing whole calendars in iCalendar format, not single events.
You have two options:
1. Always publish complete calendar via /ical URI.
2. Write CalDAV client and then you can work with single events via /caldav URI.

Messages: 2
Karma: 0
Send a private message to this user
I've tried with a CalDav client, but no luck, hence trying PHP Post.

I do a "findprops" and it tells me the calendar URL is : 62886c2-73d1-489c-8c7a-19292303e870-00000001.eml

When I do a put request to:

$result = $cal->DoPUTRequest( 'c62886c2-73d1-489c-8c7a-19292303e870-00000001.eml',$calendarData, 'c62886c273d1489c8c7a19292303e8700000000100000000'); 

The put request takes (relativeurl, ical resource, etag);

I get a 200 (ok) response, but nothing changes. Any other "relative url" causes a forbidden error.
Previous Topic: [German] Kerio Connect mit Strato Domain einrichten.
Next Topic: Help with Custom Spam Filter Rules
Goto Forum:

Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Tue Oct 17 18:54:11 CEST 2017

Total time taken to generate the page: 0.00354 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.