View Full Version : WHat is "http headers"?
gilgalbiblewheel
Sep 12th 2005, 9:44 pm
The redirect page is giving error.
UPDATE insertanswer SET passages = "God created" WHERE [id] = 1;
UPDATE insertanswer SET passages = "there be ligh" WHERE [id] = 3;
Response object error 'ASP 0156 : 80004005'
Header Error
/wheelofgod/pageing4.asp, line 76
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
ServerUnion
Sep 12th 2005, 10:12 pm
sounds like you are trying to do a redirect after data has been sent to the browser.
"Any HTTP header modifications must be made before writing page content."
Good luck
exam
Sep 12th 2005, 10:49 pm
This usually means there was some error and with the error it outputs some error message to the browser and it has to send the headers to be able to do this. Then when you get to your code that sends headers, oops they have already been sent.
vectorgraphx
Sep 13th 2005, 10:48 am
try putting this at the top of your page:
<%response.buffer=true%>
J.D.
Sep 13th 2005, 10:56 am
What happens is that you are trying to set a new header not at the beginning of the page, when some of the response, including HTTP headers was already sent to the user. In other words, if you have something like this:
Response.Write(somedata);
Response.AddHeader(header, value);
, you may get this error, depending on how much data is being sent in the first call.
Move your call that modifies headers (e.g. AddHeader, Redirect, etc) to the beginning of the page and this problem will go away.
J.D.
ServerUnion
Sep 13th 2005, 11:15 am
try putting this at the top of your page:
<%response.buffer=true%>
I place this on most of my pages, works great.
J.D.
Sep 13th 2005, 11:25 am
I place this on most of my pages, works great.It's turned on by default - no need to make ASP process more directives than it needs :)
J.D.
ServerUnion
Sep 13th 2005, 11:27 am
depends on your version of ISS you are running. If was turned on, he wouldn't be getting the error...
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.