Test PROPPATCH to change the name of a calendar.

This commit is contained in:
Andrew McMillan 2007-11-25 00:37:58 +13:00
parent 10f0e300ab
commit 96ebfb59d0
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,14 @@
HTTP/1.1 200 OK
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, access-control, calendar-access
Content-Length: 256
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>/caldav.php/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/</href>
<responsedescription>All requested changes were made.</responsedescription>
</response>
</multistatus>
iCal Calendar --- 1

View File

@ -0,0 +1,29 @@
#
# iCal does a PROPPATCH to change the name of a calendar
#
TYPE=PROPPATCH
URL=http://mycaldav/caldav.php/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/
HEADER=Content-Type: text/xml
HEADER=User-Agent: DAVKit/2.0 (10.5.1; wrbt) iCal 3.0.1
HEAD
# Reformatted for readability
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<x0:propertyupdate xmlns:x0="DAV:">
<x0:set>
<x0:prop>
<x0:displayname>iCal Calendar</x0:displayname>
</x0:prop>
</x0:set>
</x0:propertyupdate>
ENDDATA
QUERY
SELECT dav_displayname, is_calendar
FROM collection
WHERE dav_name = '/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/';
ENDQUERY