• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Further Extending Your Appli... > Working the Web—the Power of CFHTTP ...

Working the Web—the Power of CFHTTP and CFCONTENT

One of the most useful and powerful tags in ColdFusion’s arsenal is CFHTTP. CFHTTP enables developers to perform a host of functions and operations using the GET and POST methods of Hypertext Transfer Protocol (HTTP). Some of the uses for CFHTTP are the generation of static Hypertext Markup Language (HTML), the retrieval of files, the exchanging of information with other web servers, and the polling of other applications and web servers for content such as news feeds.

Another powerful tag is the CFCONTENT tag, which enables you to set the Multipurpose Internet Mail Extension (MIME) type of content returned from a ColdFusion template as well as download files from the server to the client. By default, ColdFusion returns a MIME content type of text/html so that a web browser renders your template text as a web page.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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