Redirecting using headers: CGI application misbehaved
| From: | Diego Fulgueira | Date: | Wed, 27 Dec 2000 20:42:14 +0000 |
| Subject: | Redirecting using headers: CGI application misbehaved | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-32003@lists.php.net to get a copy of this message | ||
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.