Another PROPFIND from Mozilla.

This commit is contained in:
Andrew McMillan 2009-05-12 18:56:29 +12:00
parent 9893e22334
commit af5fa5d7c4
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,27 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
ETag: "4fe9132506b8fdf3c48d343d59353b6f"
Content-Length: 539
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:A="http://calendarserver.org/ns/">
<response>
<href>/caldav.php/user5/home/</href>
<propstat>
<prop>
<resourcetype>
<collection/>
<C:calendar/>
<C:schedule-calendar/>
</resourcetype>
<A:getctag>"0a791842f52a0acfbb3a783378c066b8"</A:getctag>
<owner>
<href>/caldav.php/user5/</href>
</owner>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,24 @@
#
# Do a PROPFIND request
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/user5/home/
HEAD
AUTH=user5:user5
HEADER=User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b4pre) Gecko/20090324 Calendar/1.0pre
HEADER=Accept: text/xml
HEADER=Accept-Language: en-us,en;q=0.5
HEADER=Accept-Encoding: gzip,deflate
HEADER=Accept-Charset: utf-8,*;q=0.1
HEADER=Content-Type: text/xml; charset=utf-8
HEADER=Depth: 0
BEGINDATA
<D:propfind xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
<D:prop>
<D:resourcetype/>
<D:owner/>
<CS:getctag/>
</D:prop>
</D:propfind>
ENDDATA