Macromedia coldfusion 4.5-cfml language reference User Manual

Page of 608
Chapter 1:  ColdFusion Tags
97
</UL>
<CFHTTP
URL = "http://www.allaire.com"
resolveurl = 1
throwonerror = Yes
>
</CFHTTP>
<CFOUTPUT>
#cfhttp.filecontent#<BR>
<BR>
<H3><B>The mime-type:</B></H3><BR>
#cfhttp.mimetype#<BR>
<H3><B>The Status Code:</B></H3><BR>
#cfhttp.statuscode#<BR>
<H3><B>The Raw Header:</B></H3><BR>
#cfhttp.header#<BR>
</CFOUTPUT>
<H3><B>Output the Response Headers:</B></H3><BR>
<HR>
<CFLOOP collection=#CFHTTP.RESPONSEHEADER# item="httpHeader">
<CFSET value = CFHTTP.RESPONSEHEADER[httpHeader]>
<CFIF IsSimpleValue(value)>
<CFOUTPUT>
#httpHeader# : #value#<BR>
</CFOUTPUT>
<CFELSE>
<CFLOOP index="counter" from=1 to=#ArrayLen(value)#>
<CFOUTPUT>
#httpHeader# : #value[counter]#<BR> 
</CFOUTPUT>
</CFLOOP>
</CFIF>
</CFLOOP>
</BODY>
</HTML>