Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP DELETE method on IIS using HttpURLConnection

 
pd mehta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
pd mehta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic