This is a discussion on CGI and HTTP headers error within the PHP Language forums, part of the PHP Programming Forums category; Hello all, My PHP script produce an intermittent CGI error. The sequence of events is: 1- User load page A ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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: http://www.mydomaine.com/mydir/b.php") 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? Thanks. Yannick |
|
|||
|
Yannick Turgeon wrote:
> 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: > http://www.mydomaine.com/mydir/b.php") 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? > > Thanks. > > Yannick Hi, 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. Regards, Erwin Moller |
|
|||
|
> 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. 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... Yannick |