I hope someone can help. We have a website that displays a webcam pointed at the
beach. Many people were linking directly to the image itself instead of linking to
our domain. So we decided to serve up the image through CF so they would get a 'bad'
image if they weren't viewing it on our site. So anyway, I'm calling the image using
'image.cfm' and it seems to work find (code for this page below). The only problem is
our server has been having some problems just recently with 'inetinfo.exe' using 100%
of the cpu. We don't know what is causing it and we have to reboot to get the server
running again. Anyway, now I'm being blamed that it's something in CF that I've done.
So I was browsing through the webserver.log file and I see this:
"Error","TID=383","03/15/01","06:29:56","Error attempting to write reply header back
to web server (Windows NT error number 10038 occurred)"
Do you guys know what that is? Could it be that my image.cfm file is causing errors
randomly? Please help I'm not sure what to do and I'm sick of getting blamed for
stuff.
image.cfm file:
-------------------------------------------
<cfsetting enablecfoutputonly="Yes">
<cfif CGI.HTTP_Referer contains "mydomain.com">
<cfheader name="Content-Disposition" value="inline;filename=""beachcam.jpg""">
<cfcontent type="image/jpeg" file="F:\www\beachcam\beachcam.jpg">
<cfelse>
<cfheader name="Content-Disposition" value="inline;filename=""bad.jpg""">
<cfcontent type="image/jpeg" file="F:\www\beachcam\bad.jpg">
</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