Working cfhttp call to API returns "malformed or illegal request" after migration to CF2023
We have a working CFHTTP call in our production code on a CF2021 server which works just dandy. It calls an outside party to get a token and follow up with more specific requests using get & put.
As part of our enterprise migration process we have cloned the same code to our newly installed CF2023 instance on our twin sister dev server, where many of the same calls have now failed.
We're pretty sure it's not any SSL or CERT issue, because the one initial call to get the token still works. The subsequent calls fail with:
<html><head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>400 Bad Request</title> </head> <body text=#000000 bgcolor=#ffffff> <h1>Error: Bad Request</h1> <h2>Your client has issued a malformed or illegal request.</h2> <h2></h2> </body></html> This sure looks like the API's response, not a network issue.
I had started down the typical debugging paths (any missing updates? char set?, wrong verb? placement of headers and body, etc...), but then I had to snap back to the one truth here:
This code all worked fine on CF2021, it now fails on CF2023
So, I need to find that "what's new" article which always comes out with a new CF release (explaining things they've changed and the new Admin settings to un-change them, for example), but my searches and clicks will always send me to Cf2025's notes... not 2023's. Slightly frustrating ;-]
So can someone please humor me - and tell me what has changed between ColdFusion 2021 and 2023,0,12,330713 (enterprise on Windows Server 2016) which would cause our outgoing cfhttp calls to change from "valid requests" to "malformed" gibberish?
Thanks in advance, CFML heroes...
