This content has been marked as final. Show 3 replies
Everything is possible; not everything is a good idea. You could for example implement a servlet that accepts a HTTP DELETE request.
But if you do that, you are not the only one that will be able to delete files. HTTP is quite a public thing you know. So perhaps you will want to ask yourself a question: do I really WANT to be able to remove a file when you have only HTTP access?
Thank you for your response.
Is there a way without servlets.
URL url = new URL("http://devapp/Anand.pdf");
HttpURLConnection httpCon = (HttpURLConnection) url.openConnection();
+"Content-Type", "application/x-www-form-urlencoded" );+
I tried the above, but got a method not allowed 404 response.