What are the differences between HttpGet and HttpDelete?
- HttpGet and HttpDelete are two action verbs defined by the RESTful architecture which indicate GET and DELETE operations on a resource respectively.
- HttpGet action can be called on all browsers directly by invoking the resource URL.
- 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.
- A HttpDelete action can't be called over the browsers directly; it can only be called over an XHRHttpRequest.
- Calling a HttpDelete action over a browser by means of the resource URL results in 405 (Method Not Allowed) by the server.
Posted Jul 06, 2021