Re: Redirecting using headers: CGI application misbehaved

From: Date: Thu, 28 Dec 2000 10:03:18 +0000
Subject: Re: Redirecting using headers: CGI application misbehaved
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32063@lists.php.net to get a copy of this message
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 > >

« previous php.general (#32063) next »