What are the differences between HttpGet and HttpDelete?

  1. HttpGet and HttpDelete are two action verbs defined by the RESTful architecture which indicate GET and DELETE operations on a resource respectively.
  2. HttpGet action can be called on all browsers directly by invoking the resource URL.
  3. A DELETE operation can be marked GET and it still works; but its not recommended since there is a high of chance of resource being deleted accidentally.
  4. A HttpDelete action can't be called over the browsers directly; it can only be called over an XHRHttpRequest.
  5. Calling a HttpDelete action over a browser by means of the resource URL results in 405 (Method Not Allowed) by the server.
  1. HttpGet and HttpDelete are two action verbs defined by the RESTful architecture which indicate GET and DELETE operations on a resource respectively.
  2. HttpGet action can be called on all browsers directly by invoking the resource URL.
  3. A DELETE operation can be marked GET and it still works; but its not recommended since there is a high of chance of resource being deleted accidentally.
  4. A HttpDelete action can’t be called over the browsers directly; it can only be called over an XHRHttpRequest.
  5. Calling a HttpDelete action over a browser by means of the resource URL results in 405 (Method Not Allowed) by the server.
Sriram Mannava
Sriram Mannava

I'm a full-stack developer and a software enthusiast who likes to play around with cloud and tech stack out of curiosity.

Leave a Reply

Your email address will not be published. Required fields are marked *