CGI and HTTP headers error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yannick Turgeon

    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("Locatio n:
    http://www.mydomaine.c om/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


  • Erwin Moller

    #2
    Re: CGI and HTTP headers error

    Yannick Turgeon wrote:
    [color=blue]
    > 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("Locatio n:
    > http://www.mydomaine.c om/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[/color]

    Hi,

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

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

    Regards,
    Erwin Moller

    Comment

    • Yannick Turgeon

      #3
      Re: CGI and HTTP headers error

      > Are you sure that the script that is named in the action of the form on[color=blue]
      > pageA stops executing after adding the header("Locatio n.... etc") ??
      >
      > If not: Maybe it produces sometimes an error in the subsequent code.[/color]
      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


      Comment

      Working...