CalDav Access still working?

58 views
Skip to first unread message

Alexander Mack

unread,
Dec 5, 2011, 2:01:01 AM12/5/11
to google-ca...@googlegroups.com
Hello,
I am trying to develop an iPhone app, which can read your google calendar events inside the app (not via the Apple iCal - App).
Therefore I need to connect to the google CalDav Server and retrieve a list of events.
The API says, that I should use either one of the following urls: (According to http://code.google.com/apis/calendar/caldav/)


I tried both of them and I did replace calid by my calenderId. Further my calendar is public.
Unfortunately it doesn't work! The first URL returns a method not allowed error while the second URL returns a Not Found error.

Any suggestions what I should do to solve this issue?

Are manual requests to the CalDav server still allowed since api version 3?

Thanks in advance
Alex


Eric Carr

unread,
Dec 5, 2011, 3:19:56 PM12/5/11
to google-ca...@googlegroups.com
It works for me. Are you sending:

1. A valid method
2. Http-Header:  Depth: 0
3. Valid body

The following request works for me:

Authorization: Basic [base64 encoding of "username:password"]
Content-Type: text/xml; charset=utf-8
Depth: 0
Content-Length: 151
Connection: Keep-Alive

<D:propfind xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><CS:getctag/></D:prop></D:propfind>

Reply all
Reply to author
Forward
0 new messages