CGI and HTTP headers error

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Hello all,

My PHP script produce an intermittent CGI error. The sequence of events is:
1- User load page A to login
2- Submit page A redirect (with the PHP funciton header("Location: ") to page B.
3- About 20% of the time I got the error:
"The specified CGI application misbehaved by not returning a complete set of
HTTP headers."
4-  "Refresh" afterward shows the page without error.

I tried to find a difference between a correctly loaded page B and one that
generate an error and I cannot find one. It realy doesn't seem to be linked
to the sequence of action the user is doing.

Anybody can help about it? Any idea or suggestion?



Re: CGI and HTTP headers error

Yannick Turgeon wrote:

Quoted text here. Click to load it


Are you sure that the script that is named in the action of the form on
pageA stops executing after adding the header("Location.... etc") ??

If not: Maybe it produces sometimes an error in the subsequent code.

Erwin Moller

Re: CGI and HTTP headers error

Quoted text here. Click to load it
Hello Erwin. Thanks for your comments.

My script did run another command before exiting. I've changed it... but the
problem is still there. These intermittent problems are such a pain! I think
we'll live with that bug...


Site Timeline