tags:

views:

23

answers:

2

HttpURLConnection does only support things like GET, POST and HEAD - but no REPORT/PROPFIND. I'm going to implement a CalDAV-Client but without theese operations (if I want to use them I get a ProtocolException) I have to write/deliver a complete and huge HTTP library with auth and so on.

"Overkill".

How do I send requests with PROPFIND and REPORT?

+2  A: 

You'd probably want to look for a WebDAV libary, not an HTTP library, for this one.

Maybe take a look at Apache Jackrabbit.

Dean J
+1 for the link to Jackrabbit, although the link you've sent is for the server side. This might be more directly relevant: http://jackrabbit.apache.org/api/1.3/org/apache/jackrabbit/webdav/client/methods/package-summary.html
Bruno
+1  A: 

You could try to use another HTTP library, such as Apache HTTP client and extend its HttpRequestBase (see HttpGet and HttpPost for example).

Alternatively, you could use a WebDAV client library directly.

Bruno