#11446 closed bug (invalid)
$.ajax DELETE does not append query string params
Reported by: | 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 follow-up: 2 Changed 12 years ago by
Component: | unfiled → ajax |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
comment:2 Changed 10 years ago by
Replying to timmywil:
DELETE requests should not attach data to the query string.
Why? They shouldn't attach body queries.
Note: See
TracTickets for help on using
tickets.
DELETE requests should not attach data to the query string.