Skip to content

Instantly share code, notes, and snippets.

@JamoCA
Last active December 3, 2020 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamoCA/bc7428b9985ef560fd62b15c3b177f94 to your computer and use it in GitHub Desktop.
Save JamoCA/bc7428b9985ef560fd62b15c3b177f94 to your computer and use it in GitHub Desktop.
CFML Demo. Yes/No and True/False are not always interchangeable with Adobe ColdFusion.
<cfscript>
/* The following CFML will throw an "Attribute validation" error in Adobe ColdFusion if getAsBinary is not a "yes/no/auto/never" string.
Using true/false is not an option unless using Lucee.
Gist: https://gist.github.com/JamoCA/bc7428b9985ef560fd62b15c3b177f94
TryCF: https://www.trycf.com/gist/bc7428b9985ef560fd62b15c3b177f94
*/
cfhttp(method="GET", charset="utf-8", url="https://www.google.com/", result="result", getAsBinary="false") {
cfhttpparam(name="q", type="url", value="cfml");
}
writeDump(result);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment