Last active
December 3, 2020 17:24
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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