Copy link to clipboard
Copied
Am I doing something wrong or is there a bug in ColdFusion 2025? I get this error:
Could not find the ColdFusion component or interface http. Ensure that the name is correct and that the component or interface exists.
When trying to instantiate an HTTP service object using the cfscript syntax:
<cfscript>
http = new http();
writeDump(http);
abort;
</cfscript>
This is a fresh ColdFusion 2025 install.
No, you're not doing anything wrong. Http() is one of the functions that was deprecated in ColdFusion 2018, and that has now been removed in ColdFusion 2025. Others include, for example, query() and mail(). For more on this, see Pete Freitag's "ColdFusion 2025 Breaking Changes Explained".
Copy link to clipboard
Copied
No, you're not doing anything wrong. Http() is one of the functions that was deprecated in ColdFusion 2018, and that has now been removed in ColdFusion 2025. Others include, for example, query() and mail(). For more on this, see Pete Freitag's "ColdFusion 2025 Breaking Changes Explained".
Copy link to clipboard
Copied
Use cfhttp() instead. For example
<cfscript>
cfhttp(url="http://www.adobe.com", result="res");
writedump(res);
</cfscript>
Copy link to clipboard
Copied
Thank you. I completely missed the depreciation notice in 2018.
Copy link to clipboard
Copied
No worries.
Other useful references: