CFHTTP page code
<!cfhttp URL="http:\\www.firefighting.com\admin_Main.asp">
<cfset HeadlinesArray = ArrayNew(1)>
<cfset ar = #cfhttp.FileContent#>
<cfloop index="headlines" from="1" to="3">
<cfset rr = Find("<!--What's New List-->", #ar#, 1)>
<cfset ar = RemoveChars(#ar#, 1, #rr# + 21)>
</cfloop>
<cfset rr = Find("<!--What's New List-->", #ar#, 1)>
<cfset ar = RemoveChars(#ar#, #rr# - 156, Len(#ar#))>
<cfset rr = Find("<a", #ar#, 1)>
<cfset ar = RemoveChars(#ar#, 1, #rr# - 1)>
<cfloop index="headlines" from="1" to="14">
<cfset rr = Find("<img", #ar#, 1)>
<cfset ahref = Mid(#ar#, 1, #rr# - 13)>
<cfset ar = RemoveChars(#ar#, 1, #rr# - 1)>
<cfset rr = Find('>', #ar#, 1)>
<cfset ar = RemoveChars(#ar#, 1, #rr#)>
<cfset rr = Find("</a>", #ar#, 1)>
<cfset closea = Mid(#ar#, 1, #rr# + 3)>
<cfset ar = RemoveChars(#ar#, 1, #rr# + 3)>
<cfset temp = ArrayAppend(HeadlinesArray, #ahref# & #closea#)>
<cfset rr = Find("<a", #ar#, 1)>
<cfset ar = RemoveChars(#ar#, 1, #rr# - 1)>
</cfloop>
<cfloop index="count" from="1" to="#ArrayLen(HeadlinesArray)#">
<cfset filer = Trim(#HeadlinesArray[count]#)>
<cfoutput>
<font size=1 face=arial>#filer#<br><br>
</cfoutput>
</cfloop>
----- Original Message -----
From: "Tony Hicks" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, September 21, 2001 10:24 PM
Subject: Re: CFHTTP [Authorization Error]
> It might help if you could show us some of the code.. CFHTTP is a little
> buggy.
> ----------
> Search the Holy Bible: http://www.bibleclicks.com
> ----- Original Message -----
> From: Mike cheese Lansing <[EMAIL PROTECTED]>
> To: CF-Talk <[EMAIL PROTECTED]>
> Sent: Saturday, September 22, 2001 2:27 AM
> Subject: CFHTTP [Authorization Error]
>
>
> > Ok this has me somewhat baffled. I am using CFHTTP to "gather" content
> from
> > one site to display on another (of course). I have the script running on
> my
> > box at work and at home and have no issues at all with the script. I
went
> > live with the file and I now receive Authorization error messages. I am
> > unaware of the reason for this message.
> >
> > I have searched the list and did not cross another topic of this sort.
> Does
> > anyone have a good solution or reasoning for why I receive this error.
> >
> > http://www.woodenwagon.com/dsp_headlines.cfm
> >
> > That is a link to the file "error" on the server.
> >
> > Thank you in advance
> > - Mike Lansing
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists