I am attempting to migrate to Lucee from ACF and have git a snag. I am using a third-party library so “just use GET” will not work. (I will also need to handle very large requests in other places so GET won’t work in any case.)
I have a CFC
<cffunction name="test" output="true" returnType="any" access="remote">
<cfreturn 'this is a test'>
</cffunction>
Change GET to POST, and I get a zero-content 200 response. I have tried this with multiple methods and tools, and the result is always the same. A POST request to a static page works as expected. CFHTTP GET and POST both work as expected. ajax POST (and whatever’s built into http://www.jtable.org/) fail, everything else I can think of works. I can’t even imagine how this could be a Lucee problem, but that’s really all that’s changed in my environment. Any help is greatly appreciated!
I’m apparently only allowed one image; the Response tab contains “No response data available for this request.”
I don’t have postman but as above other mechanisms work, it’s just the one thing that I’m forced to use by my environment that seems to be haunted. I tried curl and …
> POST /component/utilities.cfc HTTP/1.1
...
> Content-Length: 13
Another thing that comes into my mind… did you set the correct content-type in your ajax request? E.g. “Content-Type”: “application/x-www-form-urlencoded” ?