[cosmo-dev] RFC4791 HTTP REPORT and Cosmo

Grant Baillie grant at osafoundation.org
Tue Aug 19 15:14:40 PDT 2008

Yes, sadly, those methods date back farther than CalDAV, back to  
WebDAV (RFC 2518) and its derivatives. It's a little surprising that  
java would have such a limited API, since HTTP explicitly allows for  
methods other than the ones you mention.

Maybe this is one of the reasons atompub is gaining in popularity (I  
don't know enough about the API to know if using that is a viable  
option for you).


On 19 Aug, 2008, at 14:30, Sam Halliday wrote:

> Thanks Randy,
> 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
> http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/io/HttpConnection.html#setRequestMethod(java.lang.String)
> 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,  
> http://java.sun.com/j2se/1.5.0/docs/api/java/net/HttpURLConnection.html#setRequestMethod(java.lang.String)
> 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...

More information about the cosmo-dev mailing list