iCal does an initial look for calendar-home-set when we create the account.

This commit is contained in:
Andrew McMillan 2007-11-27 18:05:51 +13:00
parent aa928076f3
commit adc1166ff6
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,34 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, access-control, calendar-access
ETag: "840f74443f877d300a546ff6a4e8dd1c"
Content-Length: 743
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:C1="http://calendarserver.org/ns/">
<response>
<href>/caldav.php/user1/</href>
<propstat>
<prop>
<displayname>User 1</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:calendar-user-address-set>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C:schedule-inbox-url/>
<C:schedule-outbox-url/>
<C1:dropbox-home-url/>
<C1:notifications-url/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,31 @@
#
# Testing with a process similar to iCal 3 (preferably 3.0.1+)
#
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/user1/
HEAD
HEADER=User-Agent: DAVKit/2.0 (10.5; wrbt) iCal 3.0
HEADER=Content-Type: text/xml
HEADER=Depth: 0
#
# This query from iCal seems to discover several things. Firstly they
# get the calendar-home-set URL for this path. Secondly, they ascertain
# whether the calendar supports scheduling, and finally, whether it
# handles some Apple-specific extensions.
#
BEGINDATA
<?xml version="1.0" encoding="utf-8"?>
<x0:propfind xmlns:x2="http://calendarserver.org/ns/" xmlns:x1="urn:ietf:params:xml:ns:caldav" xmlns:x0="DAV:">
<x0:prop>
<x1:calendar-home-set/>
<x1:calendar-user-address-set/>
<x1:schedule-inbox-URL/>
<x1:schedule-outbox-URL/>
<x2:dropbox-home-URL/>
<x2:notifications-URL/>
<x0:displayname/>
</x0:prop>
</x0:propfind>
ENDDATA