44

Possible Duplicate:
Are the PUT, DELETE, HEAD, etc methods available in most web browsers?

The jQuery documentation for jQuery.ajax() says the following:

Note: Other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not supported by all browsers.

jQuery itself says it supports IE 6.0+, FF 2+, Safari 3.0+, Opera 9.0+ and Chrome. So which (if any) of the above does not support an HTTP DELETE?

laurent
  • 88,262
  • 77
  • 290
  • 428
marc.d
  • 3,804
  • 5
  • 31
  • 46
  • I was having this problem. It happened with JQuery 1.10 in IE 10 and Firefox, but not Chrome. My local dev server that was hosting the page with the AJAX did not have a good SSL cert, and I was ignoring it. It was hitting another server on my box hosting the REST service (no SSL at all). Once I removed the S from the HTTPS in the URL of the page with the form, it worked for both browsers. GET was working fine in all cases. – Ed Pike Nov 25 '15 at 21:44

2 Answers2

25

The short answer is:

All recent browsers (and even old ones) support HTTP DELETE.

It's not clear why there is this note in the jQuery documentation, unless they are referring to very old browsers like Netscape 1 or IE 2.

For information, I've tried an ajax DELETE request in IE6 and even with this browser it works. If it works with IE6, it's safe to assume it works with any other browser.

laurent
  • 88,262
  • 77
  • 290
  • 428
-10

Chrome. I'm using both PUT and DELETE in my project, in Firefox and Safari everything works fine, but Chrome executes error callback.

Ivana
  • 23
  • 1
  • 4
    I just tested sending PUT and DELETE requests to stackoverflow.com using Chrome and XMLHttpRequest and it works fine. I get back status 200 and the response body as I expected. It works with both a synchronous and asynchronous request. – cwick Apr 15 '10 at 04:02
  • which version of chrome did you test this with @Ivana? – Shripad Krishna Jun 15 '10 at 16:36