[cosmo-dev] RFC4791 HTTP REPORT and Cosmo
sam.halliday at gmail.com
Tue Aug 19 14:30:19 PDT 2008
Is there any way to use the CalDAV protocol using entirely GET and
POST methods? Using REPORT and PROPFIND are seriously problematic,
especially when considering a mobile client. In J2ME for example, the
HttpConnection only allows GET, POST and HEAD
although I believe it is possible to obtain raw socket connections
with something such as Connector.open("socket://host:port")
J2SE has something similar... HttpUrlConnection only supports GET,
POST, HEAD, OPTIONS, PUT, DELETE and TRACE
which means that in order to use REPORT or PROPFIND, one must pretty
much write the entire HTTP layer from scratch!
I suppose it is far too late to try and persuade the RFC folk that
REPORT and PROPFIND might not be as wise as originally thought...
On 19 Aug 2008, at 01:54, Randy Letness wrote:
> Sam Halliday wrote:
>> I've tried this request against my home collection (/dav/
>> myusername/) on Chandler Hub with "Depth: 1" and it doesn't return
>> anything. I've even tried it against one of my collections (/dav/
>> mysername/mycollectionname) and still nothing, the response is always
>> <?xml version="1.0" encoding="UTF-8"?>
>> <D:multistatus xmlns:D="DAV:"/>
>> Any ideas? Is there something I'm missing in the request?
> I've tried this REPORT (Depth 1) against a calendar collection and
> it seems to work. The calendar-filter you are using only matches
> VTODOs that do not have a COMPLETED property AND have a STATUS
> property that is not equal to the text "CANCELLED". Since cosmo
> does not use STATUS, this won't match notes created in cosmo. I
> changed the filter by removing the second prop-filter that matches
> STATUS and it correctly returns the VTODOS without COMPLETED.
>> Also, the PROPFIND option you are referring to... do you have any
>> example requests? This is not covered well in the RFC.
> For example you can do something like:
> curl -u user:pass -X PROPFIND -H "Depth: 1" -H "Content-Type: text/
> xml" --data-ascii "<D:propfind xmlns:D=\"DAV:
> \"><D:prop><D:resourcetype></D:resourcetype></D:prop></D:propfind>" http://localhost:8080/chandler/dav/username
> and examine the results for each collection that has the C:calendar
> cosmo-dev mailing list
> cosmo-dev at lists.osafoundation.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2443 bytes
Desc: not available
Url : http://lists.osafoundation.org/pipermail/cosmo-dev/attachments/20080819/27f31837/smime.bin
More information about the cosmo-dev