The first iPhone imitating tests.

This commit is contained in:
Andrew McMillan 2009-06-17 10:23:00 +12:00
parent 165a377b69
commit 2760343868
2 changed files with 79 additions and 0 deletions

View File

@ -0,0 +1,50 @@
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: "160cbfd2f93fae8c193c87b0fa8b8c6a"
Content-Length: 1146
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>/caldav.php/user1/home/e70576e9-c1e0-431e-a507-0386fd82f223.ics</href>
<propstat>
<prop>
<getetag>"e8060931f30c1798ac58ffbe4ec0bffc"</getetag>
<resourcetype/>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/71e2ae82-7870-11db-c6d6-f6927c144649.ics</href>
<propstat>
<prop>
<getetag>"0d7a68984bf525342d22b8924a57e8e2"</getetag>
<resourcetype/>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/da81c0ee-7871-11db-c6d6-f6927c144649.ics</href>
<propstat>
<prop>
<getetag>"421abf7e4848d2fecbf64217ed205d4b"</getetag>
<resourcetype/>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/AAA9318E-37D9-4319-8626-95ECD3D3B243.ics</href>
<propstat>
<prop>
<getetag>"5f050eca5480bbebbe9428222570913d"</getetag>
<resourcetype/>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,29 @@
#
# Testing with a process similar to iPhone 3
#
TYPE=REPORT
URL=http://mycaldav/caldav.php/user1/home/
HEAD
AUTH=user1:user1
HEADER=User-Agent: DAVKit/4.0 (728.3); iCalendar/1 (34); iPhone/3.0 7A341
HEADER=Content-Type: text/xml
HEADER=Depth: 1
BEGINDATA
<?xml version="1.0" encoding="utf-8" ?>
<x0:calendar-query xmlns:x0="urn:ietf:params:xml:ns:caldav" xmlns:x1="DAV:">
<x1:prop>
<x1:getetag/>
<x1:resourcetype/>
</x1:prop>
<x0:filter>
<x0:comp-filter name="VCALENDAR">
<x0:comp-filter name="VEVENT">
<x0:time-range start="20070516T060000Z" end="20080516T060000Z"/>
</x0:comp-filter>
</x0:comp-filter>
</x0:filter>
</x0:calendar-query>
ENDDATA