> Hi!
>
> I'm looking for <title> in CFHTTP.FileContent but I'm
> getting errors. Here's my code:
>
> <cfset Zacetek = FindNoCase
> ('<title>',CFHTTP.FileContent,1)>
You might want to do some error checking first. The mime type. The content
length. Etc. It might not be getting any data.
This is some old ugly, unoptimized, brute force code, but It's been working
for over a year so.... :)
<CFSET t=Bookmark.Title>
<CFSET t2=''>
<CFSET s=FindNoCase("<title>",CFHTTP.FileContent)>
<CFSET e=FindNoCase("</title>",CFHTTP.FileContent)>
<CFIF e-s-7 GT 0>
<CFSET t2=trim(mid(CFHTTP.FileContent,s+7,e-s-7))>
<CFSET t2=Replace("#t2#","|","-","ALL")>
<CFSET t2=Replace("#t2#","<","<","ALL")>
<CFSET t2=Replace("#t2#",">",">","ALL")>
</CFIF>
<CFIF len(t2) GT 0>
<CFSET t=t2>
</CFIF>
<CFIF len(t) IS 0>
<CFSET t=UCase(Bookmark.URL)>
</CFIF>
>
> What's wrong?
>
> Bye,
>
> Iztok
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> 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.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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.