Skip to main content

Bug Tracker

Side navigation

#11446 closed bug (invalid)

Opened March 06, 2012 06:42PM UTC

Closed March 06, 2012 08:17PM UTC

Last modified July 15, 2013 01:39PM UTC

$.ajax DELETE does not append query string params

Reported by: alexandre.conrad@gmail.com Owned by:
Priority: low Milestone: None
Component: ajax Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

jsfiddle: http://jsfiddle.net/f8ndA/

I noticed that calling .ajax() as type DELETE request doesn't append the query string parameters to the URL:

$.ajax({type: "DELETE", data: {foo: "bar"}}); http:.../

... whereas GET works just fine (so does HEAD):

$.ajax({type: "GET", data: {foo: "bar"}}); http:.../?foo=bar

Attachments (0)
Change History (3)

Changed March 06, 2012 08:17PM UTC by timmywil comment:1

component: unfiledajax
priority: undecidedlow
resolution: → invalid
status: newclosed

DELETE requests should not attach data to the query string.

Changed July 15, 2013 10:08AM UTC by anonymous comment:2

Replying to [comment:1 timmywil]:

DELETE requests should not attach data to the query string.

Why?

They shouldn't attach body queries.

Changed July 15, 2013 01:39PM UTC by dmethvin comment:3

See #11586