Test result of PROPFIND on /

This commit is contained in:
Andrew McMillan 2012-05-14 23:27:22 +12:00
parent 6730055288
commit 9e64d3a5fa
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<response>
<href>/caldav.php/</href>
<propstat>
<prop>
<principal-collection-set>
<href>/caldav.php/</href>
</principal-collection-set>
<current-user-principal>
<href>/caldav.php/user1/</href>
</current-user-principal>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C:calendar-description/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,23 @@
#
# Testing for Spec compliance. PROPFIND on /
#
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/
HEADER=User-Agent: RFC2518 Spec Tests
HEADER=Depth: 0
HEADER=Content-Type: application/xml
BEGINDATA
<?xml version="1.0" encoding="utf-8" ?>
<propfind xmlns="DAV:"><prop><principal-collection-set/><current-user-principal/><calendar-description xmlns="urn:ietf:params:xml:ns:caldav" /></prop></propfind>
ENDDATA
#<propfind xmlns="DAV:">
# <prop>
# <principal-collection-set/>
# <current-user-principal/>
# <calendar-description xmlns="urn:ietf:params:xml:ns:caldav"/>
# </prop>
#</propfind>
#ENDDATA