I'm having trouble getting those to work...
any ideas?
<!--------------------------------------------------------------------
This example shows the use of CFHTTP to pull information from a web page.
----------------------------------------------------------------------->
<HTML>
<HEAD>
<TITLE>
CFHTTP Example
</TITLE>
</HEAD>
<BODY>
<H3>CFHTTP Example</H3>
<P>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:
</P>
<UL>
<LI>display the page (fileContent)
<LI>derive the MIME type of the page (mimeType)
<LI>find the header responses (responseHeader).
</UL>
<CFHTTP
URL = "http://www.allaire.com"
resolveurl = Yes
throwonerror = Yes
>
</CFHTTP>
<CFOUTPUT>
<H3><B>The mime-type:</B></H3><BR>
#cfhttp.mimetype#<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>
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.