Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#11446 closed bug (invalid)

$.ajax DELETE does not append query string params

Reported by: alexandre.conrad@… 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

Change History (3)

comment:1 Changed 12 years ago by Timmy Willison

Component: unfiledajax
Priority: undecidedlow
Resolution: invalid
Status: newclosed

DELETE requests should not attach data to the query string.

comment:2 in reply to:  1 Changed 10 years ago by anonymous

Replying to timmywil:

DELETE requests should not attach data to the query string.

Why? They shouldn't attach body queries.

comment:3 Changed 10 years ago by dmethvin

See #11586

Note: See TracTickets for help on using tickets.