View Full Version : POST and send json data in the request body
2 Aug 2012, 11:30 PM
i can't figure out why no json data are send in the request body (payload section) when i save my model like it does with an update. Is it the correct behavior or did i miss something ? thanks for your help.
3 Aug 2012, 10:24 AM
When you call submit or set?
9 Aug 2012, 11:34 PM
sorry for the delay.
i just create a new instance of my model and save it. everything works fine except that the structure of my model are not send in the payload section formatted in json. The action operation was weirdly set to 'update' and not 'create' and so the http method set as PUT. I forced the action operation to 'create' to make the http method send as POST. I was surprised that the creation of a new instance was not associated with a POST method.
when i update my instance, the data are correctly send in the payload section as expected.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.