#
# PUT request like Chandler does it.
#
TYPE=PUT
URL=http://regression.host/caldav.php/user1/home/71e2ae82-7870-11db-c6d6-f6927c144649.ics
HEADER=Content-Type: text/calendar
HEAD

#
# Somewhat atypical Chandler data since I insisted it use a timezone on this occasion
BEGINDATA
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//PYVOBJECT//NONSGML Version 1//EN
BEGIN:VTIMEZONE
TZID:Pacific/Auckland
BEGIN:STANDARD
DTSTART:20000319T030000
RRULE:FREQ=YEARLY;BYDAY=3SU;BYMONTH=3
TZNAME:Pacific/Auckland
TZOFFSETFROM:+1300
TZOFFSETTO:+1200
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20001001T020000
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=10
TZNAME:Pacific/Auckland
TZOFFSETFROM:+1200
TZOFFSETTO:+1300
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
UID:71e2ae82-7870-11db-c6d6-f6927c144649
DTSTAMP:20060511T043751Z
DTSTART;TZID=Pacific/Auckland:20061103T160000
DTEND;TZID=Pacific/Auckland:20061103T174500
DESCRIPTION:
LOCATION:Level 3
RRULE:FREQ=WEEKLY;INTERVAL=2;UNTIL=20071222T235900
STATUS:CONFIRMED
SUMMARY:Beer O'Clock
END:VEVENT
END:VCALENDAR
ENDDATA

QUERY
SELECT caldav_data.user_no, caldav_type, logged_user, 
       uid, dtstamp, dtstart at time zone olson_name as dtstart,
       dtend at time zone olson_name as dtend, due, summary, location,
       description, priority, class, transp, rrule, url,
       percent_complete, tz_id, status,
       calendar_item.last_modified,
       caldav_data AS "A1 CalDAV DATA"
FROM caldav_data JOIN calendar_item USING(dav_name) LEFT JOIN timezones ON (tz_id=tzid)
WHERE caldav_data.dav_name =
 '/user1/home/71e2ae82-7870-11db-c6d6-f6927c144649.ics';
ENDQUERY
