So If you are POSTing for JSON, you need to make sure that you have the following HTTP Header,
Content-Type: application/json
If you have XML as a POST payload then use,
Content-Type: text/xml
If for whatever reason you have interchanged them, it will throw a bad request status code 400 and say that it cannot be parsed. Hope this will help someone as it had me scratching longer than I expected.
No comments:
Post a Comment