Skip to main content

RFE: Support WebDAV in HttpURLConnection

1 reply [Last post]
Joined: 2006-11-26

Hi all,

I have an RFE for Java 7.

I've been working on a project that uses CalDAV, which is based on the WebDav standard (RFC2518)... however, it is impossible to use Java for these emerging standards without rewriting the entire HTTP protocol implementation on top on Socket access! This is because HttpURLConnection explicitly enforces that the HTTP METHOD be one of GET, POST, HEAD, OPTIONS, PUT, DELETE or TRACE. However, WebDAV makes heavy use of PROPFIND and REPORT as methods... but they cannot be used.

Please please remove the code that explicitly checks the method set by the user... such a change would be backwards compatible and also grant the user the power to set WebDAV methods, without necessarily having to document this.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2005-08-08 is the place to submit feature requests. Alternatively, if you are willing to work on this then the net-dev at mailing is the place to post a patch. You may want to send mail there first to check to get the rational for the restriction in the current specification. If my memory is correct there are security concerns with allowing arbitrary extensions methods.