If you’re using this to retrieve JSON:
And find your response is JSON wrapped in a bare-bones HTML document, rather than just the JSON you were expecting, you might need to add a cfhttpparam accept tag to specifically reference application/json, like so:
<cfhttpparam type="header" name="Accept" value="application/json">
Cruel sun relents–
Creatures of eventide give
a collective sigh.
I spent more time than I’d have liked last week fixing an issue related to the intermittently incorrect appending of UTM parameters to URLs. Basically, the code worked fine if the link was “basic”, but if it already had parameters, a second question mark would get added. Since URLs cannot have two question marks, the link would break.
I hope you’ll find this useful– both in the sense of finishing a coding task faster, and having fewer issues to resolve after deployment.