Access user resources
Added by IBM contributorAnna G O'Neal | Edited by Claudia R Elbourn on June 26, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Provide the Calendaring Extensions to WebDAV (CalDAV) client with access to CalDAV resources of users.

Table 1. API details

Method Resource address
PROPFIND PROPFIND /.well-known/caldav

The following code provides a sample implementation of the API. For details about using the API in your own development environment, see the Internet Engineering Task Force (IETF) Request for Comments (RFC) resources at the end of this topic.

Sample request


PROPFIND https://mail-usw.lotuslive.com/.well-known/caldav HTTP/1.1

Host: mail-usw.lotuslive.com

User-Agent: iOS/5.0.1 (9A405) Preferences/1.0

Content-Length: 181

Accept: */*

Accept-Language: en-us

Accept-Encoding: gzip, deflate

Depth: 0

Content-Type: text/xml

Authorization: Basic <base64 encoding of user_email:password>

Connection: keep-alive

Proxy-Connection: keep-alive



<?xml version="1.0" encoding="UTF-8"?>

<A:propfind xmlns:A="DAV:">

<A:prop>

<A:current-user-principal/>

<A:principal-URL/>

<A:resourcetype/>

</A:prop>

</A:propfind>


Sample response


HTTP/1.1 207 Multi-Status

Server: nginx

Content-Type: application/xml;charset=utf-8

Cache-Control: private, max-age=0

Expires: Thu May 03 08:14:14 GMT 2012

DAV: 1, access-control, calendar-access, calendar-schedule, calendar-proxy, calendar-auto-schedule

Date: Thu, 03 May 2012 08:14:14 GMT

Content-Length: 850

Connection: close

Set-Cookie: JSESSIONID=13EB392B5A9AD916EED4B4F9391B0651; Path=/calendar; Secure



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

<D:response>

<D:href>/calendar/r/dav/w ellknow n/</D:href>

<D:propstat>

<D:prop>

<D:resourcetype>

<D:collection/>

</D:resourcetype>

<D:principal-URL xmlns:ns4="http://apple.com/ns/ical/">

<D:href>/calendar/r/dav/users/bgs_demo07@try.lotuslive.com/</D:href>

</D:principal-URL>

</D:prop>

<D:status>HTTP/1.1 200 OK</D:status>

</D:propstat>

<D:propstat>

<D:prop>

<A:current-user-principal xmlns:A="DAV:"/>

</D:prop>

<D:status>HTTP/1.1 404 Not Found</D:status>

</D:propstat>

</D:response>

</D:multistatus>

Related Resources

Web Distributed Authoring and Versioning (WebDAV) Access Control Protocol

Defining Well-Known Uniform Resource Identifiers (URIs)