(sent this yesterday, 14th May, but it didn't appear on the list, resending, apologies to anyone getting two copies)
just a quick follow-up on the problem of CF not sending a content-length with a 500 response and IE then showing the "friendly" HTTP error message because the length of the response is below it's threshold for what it considers a "well designed web page". [1] I have a workaround for this using the following code in a site-wide error handler. Thanks to Dave Watts for reminding me of the existence of the Error.GeneratedContent variable. <cfsetting enablecfoutputonly="Yes"> <cfset intContentLength = Len(Error.GeneratedContent) + Len(Error.Diagnostics)> <cfheader name="content-length" value="#intContentLength#"> <cfoutput>#Error.GeneratedContent##Error.Diagnostics#</cfoutput> There is some info on the Macromedia site (well, very little) about the problem, but they just recommend adding a key and string value to the registry to force CF to go back to breaking HTTP and sending 200 OK even if an error has been encountered while processing a template [2]. This is hardly best practice, if there is an error, the correct response is 500. I've posted a message to the support forums in the hope of getting some response from Macromedia [3]. Mark [1] http://support.microsoft.com/default.aspx?scid=kb;EN-US;q218155 [2] bug no. 26109, http://www.macromedia.com/v1/documents/cf50/cf5_update.htm [3] http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=143&threadid=342455 ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm ------------------------------------------------------------------------------ To unsubscribe, send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com
