Re: Redirecting using headers: CGI application misbehaved

From: Date: Thu, 28 Dec 2000 13:07:57 +0000
Subject: Re: Redirecting using headers: CGI application misbehaved
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32074@lists.php.net to get a copy of this message
Hi, I have been battling with the same problem since PHP4.0.3. I think this is a PHP bug with something that changed between 4.0.2 and 4.0.3. I think it should go in the bug reports. Apache does not give this error. Maurice ----- Original Message ----- From: "Anuradha Ratnaweera" <anuradha@gnu.org> To: "Diego Fulgueira" <dful@metahogar.com> Cc: <php-general@lists.php.net> Sent: Thursday, December 28, 2000 5:03 AM Subject: Re: [PHP] Redirecting using headers: CGI application misbehaved > > Try to access the page with > > wget -d etc.etc/file.php3 > > which will show the headers. This will give some indication of the > problem. If you have POST variables, change the script to handle them as > GET variables (only for this test). > > Anuradha > > On Wed, 27 Dec 2000, Diego Fulgueira wrote: > > > Hi everyone. > > > > I am trying to redirect inside an include file using: > > > > header("Location: http://etc.etc/file.php3"); > > > > But i get the following error sent by IIS 5.0: > > > > "The specified CGI application misbehaved by not returning a complete set of > > HTTP headers." > > > > I already checked that all my included files don't have any carriage returns > > or spaces before or after the php-code enclosing tags. > > > > The error only happens the FIRST TIME i load the page!! After clicking > > refresh on my browser (either IE or Netscape) it is displayed ok. Then, the > > error can only be reproduced after reloding the previous page and clicking > > the link again. Weird, isn't it? > > > > I am desperate. Does anyone have a clue, please?? > > Thanks in advance. > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#32074) next »