Skip to main content
jascomp
Known Participant
March 8, 2025
Answered

ColdFusion 2025 Issue?

  • March 8, 2025
  • 1 reply
  • 830 views

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.

    Correct answer BKBK

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

    1 reply

    BKBK
    BKBKCorrect answer
    Braniac
    March 8, 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".

    BKBK
    Braniac
    March 8, 2025

    Use cfhttp() instead. For example

     

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