Accessing application/json message body of POST request
Bardo Nelgen <[email protected]> Sun, 16 Mar 2014 20:36:39 +0100
| Newsgroups | gmane.text.xml.cocoon.user |
|---|---|
| Organization | BNN Performances |
| Message-ID | <[email protected]> |
Hi all, has someone ever accessed the message body of a post request to cocoon which uses application/json as its content type? The same request is being handled without issues if posted as application/x-www-form-urlencoded. Though, as soon as the content type is changed to JSON, Cocoon appears to skip parsing the message body. Unfortunately it's not me making these POST calls; which is why just "switching it" is not an option. Is there some setting which can tell cocoon to simply continue parsing, either regardless of a post's content type (which, of course might raise security issues…) or explicitly for application/json ? Any suggestions are welcome. Regards, Bardo