#
# Attempt to put an event into a bound location, where
# the binding does confer write privileges
#
TYPE=PUT
URL=http://regression.host/caldav.php/user4/base/user2/thiswillalsobegood.ics

HEADER=Content-Type: text/calendar; charset=utf-8
AUTH=user4:user4
HEAD

BEGINDATA
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Apple Inc.//iCal 3.0//EN
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Pacific/Auckland
BEGIN:STANDARD
TZOFFSETFROM:+1300
TZOFFSETTO:+1200
DTSTART:19900318T030000
RRULE:FREQ=YEARLY;UNTIL=20070317T140000Z;BYMONTH=3;BYDAY=3SU
TZNAME:NZST
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:+1200
TZOFFSETTO:+1300
DTSTART:19901007T020000
RRULE:FREQ=YEARLY;UNTIL=20060930T140000Z;BYMONTH=10;BYDAY=1SU
TZNAME:NZDT
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VTODO
PRIORITY:0
SEQUENCE:4
DTSTART;TZID=Pacific/Auckland:20040101T120000
UID:A51AC037-E6F9-4E03-872C-7DFE0B67D1FF
DTSTAMP:20100318T210557Z
SUMMARY:Release DAViCal 0.9.9
CREATED:20100318T210457Z
X-APPLE-SORT-ORDER:2147483647
DUE;VALUE=DATE:20100326
END:VTODO
END:VCALENDAR
ENDDATA

QUERY
SELECT caldav_data.dav_name, caldav_data.dav_etag, dtstart, summary
  FROM caldav_data JOIN calendar_item USING(dav_name)
  WHERE caldav_data.dav_name ~ '/user2/.*thiswill'
  ORDER BY dav_etag
ENDQUERY


