Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

after form post, i see the http response printed!?

Status
Not open for further replies.

bsingin64

IS-IT--Management
Oct 24, 2001
63
US
I have a form, that posts to a processing page. and that page in turn directs to a logged on homepage or back to the logon with a handled error. Here is the process:

For background. This is a web application. that does dynamic includes of the page content. (its a site builder type application). A page is called through PageID. That is passed to a DB where it chooses what file to include or what record to show. So in the process below...a "page" is an include into a "constructor" (index.cfm).
1. User logs onto page "index.cfm?pageid=logon"
2. Types in info, submits to "index.cfm?pageid=ProcessLogon"
3. That page processes, and decides to throw them to a page, or redirect back to login form with an error


its at that point where i will sometimes recieve this printed out at the top of the page :

HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Mon, 25 Nov 2002 21:41:32 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Normal

that is then followed by the content of my page. successfully redirected to (whichever it may be)

Its sparatic. Happens randomly. It happens after successful logon, and after failed logons (directed to different places). If I refresh after that. the header goes away and the page displays correctly.

The layout of the site is confusing, but hopefully some of you guys have seen this type of problem before!
 
It gets better. When i really piss it off. On even a more rare occasion. The form submission completely fails and i recieve this. And only this as a result.
Code:
HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.0
Date: Mon, 25 Nov 2002 22:04:46 GMT

HTTP/1.1 302 Object Moved
Location: /?pageid=login&action=invalid
Server: Microsoft-IIS/5.0
Content-Type: text/html
Content-Length: 156

<head><title>Document Moved</title></head>
<h1>Object Moved</h1>This document may be found <a HREF=&quot;#&quot;>here</a>


And if i refresh...it THEN shows the first error. Then if i refresh again...I get a happy page

Crazy eh? Thank god my work day is almost over
 
somthing else i noticed.
Just before the include for the processing page i run a
<cfhtmlhead text=&quot;<title>#GetHeader.Title#</title>&quot;>

line...Then i do the cfinclude. The include is the processing page. heres what it looks like

<title>PROCESSING PAGE</title>HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0 Date: Mon, 25 Nov 2002 21:41:32 GMT Connection: close
Content-type: text/html
Page-Completion-Status: Normal
Page-Completion-Status: Normal

<html>... Continues on with the CFLOCATION back to the login or whatever page. Whats interesting is, the PROCESSING PAGE title came up on the source. then the http response THEN the code which was a CFLOCATION FROM THE PROCESSING PAGE.

I was under the impression that a cflocation will send the browser to that page. Completely clearing the http header and actually navigating to that page. But it looks like it is dumping the content of a cflocation onto my browser after it did the include of the processing page...

very odd!


 
It's been a while since the problem was posted. But if you're into closure...

I was also seeing the HTTP header periodically. I'm working on several CF(4.5/5.0)/Fusebox(2) applications. The strangest thing about it was that it first appeared after I upgraded the version of Internet Explorer I was running. While researching for a solution, I found the answer at:

It's probably because your <cfhtmlhead..> code was placed above the HTML <HEAD> tag.

I commented out my <cfhtmlhead..> code and relocated it at a point where it would be processed after the <HEAD> tag.

It worked like a charm!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top