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

Chapter 16. Using WDDX > Exchanging WDDX Packets among Web Pages

Exchanging WDDX Packets among Web Pages

If you've done any work with ColdFusion's <cfhttp> tag, you know that you can use it to fetch Web pages from any Web server on the Internet. Essentially, the <cfhttp> tag pretends to be a Web browser, supplying any parameters that would normally be supplied by form input, cookies, or CGI variables. ColdFusion developers already use this tag to have their applications automatically visit other Web pages programmatically.

For instance, a ColdFusion application might need to know the current temperature. By using <cfhttp> to fetch a page that includes the current temperature—perhaps the “current conditions” page of the local airport's Web site—the application can obtain a document that has the necessary information in it. Then, using ColdFusion's string manipulation functions or some regular expressions, the application can parse through the page's source code and extract the few characters that represent the temperature.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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