#11134 closed bug (wontfix)
$.post doesn't allow setting a contentType
Reported by: | iwein | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | traversing | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When posting json to a server you need to set the content type. This can not be done with the $post short-hand, and therefore requires fallback to $.ajax.
It would be great if $.post also supported a contentType.
Sample code: http://jsfiddle.net/bNA8T/
See http://stackoverflow.com/questions/8757681/why-does-jquery-post-json-as-a-parameter-name-instead-of-as-the-request-body for details and some more code.
Change History (1)
comment:1 Changed 11 years ago by
Component: | unfiled → traversing |
---|---|
Priority: | undecided → low |
Resolution: | → wontfix |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
If you want finer control, use $.ajax.