Bug Tracker

Modify

Ticket #11446 (closed bug: invalid)

Opened 16 months ago

Last modified 16 months ago

$.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:
Blocking: Blocked by:

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

comment:1 Changed 16 months ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to ajax

DELETE requests should not attach data to the query string.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.