Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

ColdFusion 2025 Issue?

Community Beginner ,
Mar 08, 2025 Mar 08, 2025

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.

159
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 08, 2025 Mar 08, 2025

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".

Translate
Community Expert ,
Mar 08, 2025 Mar 08, 2025

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".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 08, 2025 Mar 08, 2025

Use cfhttp() instead. For example

 

<cfscript>
cfhttp(url="http://www.adobe.com", result="res");
writedump(res);
</cfscript>

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 08, 2025 Mar 08, 2025

Thank you.  I completely missed the depreciation notice in 2018.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 08, 2025 Mar 08, 2025
LATEST

No worries.

Other useful references: 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources