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

14. Interacting with Other Web Servers U... > 14.1. Retrieving Information

Retrieving Information

cfhttp uses the HTTP GET method to initiate a one-way request for information from a remote server. The transaction mimics the one that a standard web browser uses to request a web page. The only difference is that in the case of cfhttp, the requested page is stored in a ColdFusion variable or in a query object, as opposed to being displayed in the user’s browser. Let’s look at the different ways in which you can use cfhttp to request information from a remote server.

Saving Information to a Variable

In its most simplistic form, cfhttp can grab an entire file (either plain text or HTML) and store it in a single variable called cfhttp.FileContent. You can access and manipulate the information stored in


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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