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.

ASP.NET Core Posted Jul 06, 2021

You can now show your support. 😊

We use cookies to provide you with a great user experience, analyze traffic and serve targeted promotions.   Learn More   Accept