Side navigation
#6477 closed enhancement (worksforme)
Opened April 23, 2010 09:57PM UTC
Closed April 16, 2011 08:38PM UTC
Last modified March 13, 2012 09:16PM UTC
Add processData option to JQuery post
Reported by: | aagrawal | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | ajax | Version: | 1.4.2 |
Keywords: | post,processData,request-body,ajaxrewrite | Cc: | |
Blocked by: | Blocking: |
Description
It's common for web services to expect data to be POSTed in the request body and not as URL parameters. This cannot be done via $.post right now, so you have to resort to using $.ajax with type 'POST'.
This option should be added to $.post
Attachments (0)
Change History (5)
Changed June 15, 2010 01:28AM UTC by comment:1
component: | unfiled → ajax |
---|
Changed October 25, 2010 12:26AM UTC by comment:2
keywords: | → post processData request-body |
---|---|
milestone: | 1.4.3 |
priority: | → low |
status: | new → open |
See: http://api.jquery.com/jquery.ajax/
Find: processData
This might be a useful feature to extend to the $.post() shorthand
Changed December 27, 2010 10:37PM UTC by comment:3
keywords: | post processData request-body → post,processData,request-body,ajaxrewrite |
---|
Changed January 09, 2011 05:55AM UTC by comment:4
Maybe there's something I don't get but there is no correlation between appending data to the url and processData. ProcessData only indicates the data needs to be url-encoded IF and WHEN it is not a string. If you pass a string to $.post() as your data parameter then it WILL be sent in the request body. Are we sure we're not dealing with a request that cannot be dealt with using a POST and hence end up being dealed with as a GET (cross-domain jsonp & script notably).
Changed April 16, 2011 08:38PM UTC by comment:5
resolution: | → worksforme |
---|---|
status: | open → closed |
Yeah, this is quite confusing - if a POST is happening then it should be in the post body, please create a new ticket with a test case if this is not the case.