File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes HTTP DELETE method on IIS using HttpURLConnection    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "HTTP DELETE method on IIS using HttpURLConnection    " Watch "HTTP DELETE method on IIS using HttpURLConnection    " New topic
Author

HTTP DELETE method on IIS using HttpURLConnection

pd mehta
Greenhorn

Joined: Jun 07, 2007
Posts: 2
Hi,

I want to send HTTP DELETE request using HttpURLConnection to remove a file from the IIS web application.

I do have write access to IIS web application.

But I am getting http error code : 501 ( NOT IMPLEMENTED ).

Is there a way to enable HTTP DELETE on IIS ?

Regards,
Dipak Mehta
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Hi,

Welcome to JavaRanch!


I don't know anything specifically about IIS, but in general, it's the application itself that would have to support DELETE. Most web servers will implement all of HTTP. Does the application support it? Very few applications implement this -- for obvious reasons!


[Jess in Action][AskingGoodQuestions]
pd mehta
Greenhorn

Joined: Jun 07, 2007
Posts: 2
Hi,

Thanks for the reply.

My application deployed on IIS is just a dumb html application. I can not put any intelligence there. It allows me to upload files because I have write access to it.

I am wondering why its not allowing to delete files ?

Regards,
Dipak
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP DELETE method on IIS using HttpURLConnection