CGI and HTTP headers error

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2005
Yannick Turgeon
 
Posts: n/a
Default CGI and HTTP headers error

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


Reply With Quote
  #2 (permalink)  
Old 03-02-2005
Erwin Moller
 
Posts: n/a
Default Re: CGI and HTTP headers error

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
Reply With Quote
  #3 (permalink)  
Old 03-02-2005
Yannick Turgeon
 
Posts: n/a
Default Re: CGI and HTTP headers error

> 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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0