I am trying to read the contents of the Grails request body and map the request to the parameters, even if I commented on grails.mime.types. I also tried setting grails.mime.types for and a blank map, and it still displays.
The body content is xml, and when Grails displays it, the key ends with "Version <? Xml". Unfortunately, the system sending the POST sets the content type to application / x-www-form-urlencoded. I have no control over their change.
I am running Grails 1.2.1.
I also tried setting format = "xml" in my UrlMappings and adding the form content type to xml mime.types, but that didn't help either. And when I try to access request.reader, it is empty.
source
share