• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

<CFHTTP> and <CFFTP>

We have seen that we can get ColdFusion to interact with email services, such as SMTP and POP3. We also can get ColdFusion to use other Internet services, such as HTTP and FTP.

Using the <CFHTTP> tag, we can get the ColdFusion Server to hit another page on the Internet and retrieve its contents. For example, while processing a template, we might want to use <CFHTTP> to run out and grab some news or weather items off another web page and display them on our web page. The following code shows an example of the use of the <CFHTTP> tag:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint