- see footer for list info -<I'm not sure that's what's happening with me, but something worth noting. Just did some testing, and CF does indeed send an incorrect content-length value if cflocation is called following cfhtmlhead. And any calls to cfheader are also ignored if cflocation is used, so you can't even manually add a "Connection: close" header to help the client determine the end of the response.
I probably won't have time to dig into this issue any more this week, but I'll get back to it sometime and if I find a solution, share it with the list.
Mark
>- see footer for list info -< Hey, yeah I have had mixed results but mainly its caused by :
1) Browser makes request for the CFM that has CFHTMLHead and CFLOCATION.
2) Server executes CFHTMLHead and store the string in a "special" buffer.
3) Server executes CFLOCATION, dumps the buffer in 2 to the output buffer, then dumps the "standard" HTTP header and HTML text (for backwards compatibility for braindead browsers such as Mosaic 2.0) for a HTTP 302 (Object Moved).
4) The HTTP header in 3 miscalculates the length of the HTTP payload, and only accounted for the HTML text in 3, and not the other stuff in 2 (the CFHTMLHead buffer). Hence, the Content-Length header is totally wrong.
5) MS I.E. thinking it is all hot and cool, decided to TRUST the Content-Length in 4, and clears its buffer by the amount specified in Content-Length, and hence, did not clear the CFHTMLHead stuff that it received from the server.
6) Then MS I.E. dutifully picked up the following page based on the "Location" HTTP header, and then dumped everything to the HTML rendering engine which includes the HTML from the final page prepended with the uncleared buffer in 2.
Hence, you get the junky stuff on top of the page.
Lesson? Try not to use CFHTMLHead until you are really really sure that it is the FINAL page and the user won't be redirected.
<sic/>
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Moretti (cfmaster) Sent: 17 December 2004 16:40 To: Coldfusion Development Subject: Re: [CF-Dev] HTTP headers appearing in browser
>- see footer for list info -< Robertson-Ravo, Neil (RX) wrote:
>>- see footer for list info -< >> >> >Are you using <cfhtmlhead> in your application? If so then its most likely the cause. > Nah mate! I use cfhtmlhead all the time and never see this problem.
It is a problem that I've seen in the past, but for the life of me I can't remember what causes it.
What version of CF are you using Mark? Any chance of a URL to look at? I vaguely remember something to do with the HTML, but its completely eluding me at the minute.
Stephen
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo
-- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com _______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo
-- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo
-- CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -< - Forum provided by www.fusetalk.com -< - DHTML Menus provided by www.APYCOM.com -< - Lists hosted by www.Gradwell.com -< - CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
