> Is there a workaround to read this data with v 4.5?
>
> TIA,
> Duane
I have a COM called TCPClient. A little hardcore maybe, but the following cf
is from one of the examples. It grabs the header info from the default page
and breaks it apart for display....
--min
<CFOBJECT
ACTION=CREATE
NAME=obj
CLASS=Intrafoundation.TCPClient
>
<cfset c=obj.Open("www.allaire.com","80")>
<CFIF c IS "1">
<cfset obj.timeout=3.000>
<cfset obj.SendRN("HEAD / HTTP/1.0")>
<cfset obj.SendRN("")>
<cfset page=obj.Recv()>
<cfoutput>#HTMLCodeFormat(page)#</cfoutput>
<p>
Breaks the headers up into name/value pairs.
</p>
<CFSET crlf=chr(13) & chr(10)>
<CFSET llen=ListLen(page,crlf)>
<table border=1>
<tr>
<th>name</th>
<th>value</th>
</tr>
<CFLOOP INDEX="i" FROM="1" TO="#llen#">
<CFSET line=ListGetAt(page,i,crlf)>
<CFIF line contains ":">
<tr>
<td><CFOUTPUT>#ListGetAt(line,1,":")#</CFOUTPUT></td>
<td><CFOUTPUT>#ListGetAt(line,2,":")#</CFOUTPUT></td>
</tr>
</CFIF>
</CFLOOP>
</table>
<cfset obj.Close()>
</CFIF>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists