Gents,
Thanks much for the responses.
First off, I'm about 100% certain its a network issue. I'm
using cfhttp to connect to different websites; using a cfc for each
site. I just tested the site below in a web browser and got "the
page cannot be displayed." I hit refresh and the site came up just
fine.
Here's a small example.
Error (Created in my own log file):
BeltwayBrokerage Started - 02:51
Expression Error - 02:52 | Page: 0 - Parameter 3 of function
RemoveChars which is now -1 must be a non-negative integer -
BeltwayBrokerage Completed - 02:52
The component is being invoked from a test template in the
root folder.
Test.cfm:
<cfinvoke component="comps.beltwaybrokerage"
method="beltwaybrokerage">
This is only a small portion of the code from a single cfc.
The error above is from the last line of code shown below. The
removechars function obviously fails because the page could not be
successfully captured by cfhttp. The code is in a sub folder called
comps.
CFC (BeltwayBrokerage.cfc):
<cfcomponent>
<cffunction name="beltwaybrokerage" output="true">
<cfparam name="records" default="">
<cfparam name="offset" default="0">
<cffile action="append" addnewline="yes"
file="d:\cfusionmx7\wwwroot\bizgot\log\gateway_#dateformat(now(),'dd-mmm-yyyy')#.log"
output="BeltwayBrokerage Started - #timeformat(now(),'HH:mm')#"
fixnewline="no">
<cfloop index="offset" from="10" to="630" step="10">
<cfset offset = 0>
<!--- BeltwayBrokerage.com --->
<cfhttp url="
http://www.beltwaybrokerage.com/listing.php"
delimiter="," resolveurl="yes">
</cfhttp>
<cfset xmldoc = cfhttp.FileContent>
<!--- Remove unneeded HTML --->
<cftry>
<cfset xmldoc = removechars(xmldoc,1,findnocase("<a
href='
http://www.beltwaybrokerage.com:80/dispprop.php?id=",xmldoc)-1)>