Should I use the POST or DELETE verb in jQuery.ajax () function

This is from the jQuery API docs:

TypeString Default: 'GET' The request type ("POST" or "GET") by default is "GET". Note. Other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not supported by all browsers.

I am going to remove AJAX links from jQuery. What I would like to know are the browser support features of DELETE and PUT. What browsers support it? Is it safer that I just go with POST?

Given that I work in ASP.NET MVC, I can beautify my actions with DELETE and POST so that both can be accepted.

+5
source share
4 answers

POST. , , .

+5

POST, X-HTTP-Method-Override DELETE.

. SO # 467535 :

X-HTTP-- ASP.NET MVC?

+1

, Html.HttpMethodOverride(HttpVerbs.Delete) .

0

All Articles