MACROMEDIA COLDFUSION 5-CFML Reference - page 165
Other manuals for COLDFUSION 5-CFML:
Quick Reference
of
714
Alphabetical List of ColdFusion Tags
147
cfhttp Example
This example shows the ability of cfhttp to pull
the contents of a web page from the Internet, and shows how
you can get the following information by using cfhttp variables:
- display the page (fileContent)
- derive the MIME type of the page (mimeType)
- find the header responses (responseHeader).
url = "http://www.allaire.com" resolveurl = 1 throwOnError = "Yes" >
#cfhttp.fileContent#
The mime-type:
#cfhttp.mimeType#
The Status Code:
#cfhttp.statuscode#
The Raw Header:
#cfhttp.header#
Output the Response Headers:
#httpHeader# : #value#
#httpHeader# : #value[counter]#