#23050 [Bgs]: Header Location error

From: Date: Mon, 07 Apr 2003 06:44:59 +0000
Subject: #23050 [Bgs]: Header Location error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37240@lists.php.net to get a copy of this message
 ID:               23050
 User updated by:  tomas dot marklund at datortek dot orebro dot se
 Reported By:      tomas dot marklund at datortek dot orebro dot se
 Status:           Bogus
 Bug Type:         IIS related
 Operating System: WinXP
 PHP Version:      4.3.1
 New Comment:

Now i've tried And it still doesen't work:
header("Location:http://tomas/daniel/index.php");

tomas is the domain. I still get this:

The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:

It must be a bug!


Previous Comments:
------------------------------------------------------------------------

[2003-04-05 06:35:53] tomas dot marklund at datortek dot orebro dot se

I thought i've tried that??! I'll try it again!

Thanks!

------------------------------------------------------------------------

[2003-04-04 12:45:00] jay@php.net

Use the full, absolute URI. 
 
header("Location: http://www.example.com/foo.php"); 
 
The RFC: 
 
http://www.w3.org/Protocols/rfc2616/rfc2616.html

 
J 

------------------------------------------------------------------------

[2003-04-04 12:37:59] tomas dot marklund at datortek dot orebro dot se

Ok how to make it work then???

------------------------------------------------------------------------

[2003-04-04 11:09:26] sniper@php.net

header("Location:foo.php"); violates the RFC. Not bug in PHP.


------------------------------------------------------------------------

[2003-04-04 07:15:25] tomas dot marklund at datortek dot orebro dot se

I installed a new php4.3.1 on a new IIS5 on a new computer with WinXP
SP1.
And then all my scripts with the 
Header("location:index.php") funktion stopt working.

The only error message that i get is:

CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:

Note: It worked before!!
I hope this is no bug! but a error i've made

PHP 4.3.1 installer.zip
MySQL 4.0 (if this matter)


code--

<?$connect = mysql_connect("localhost","secr","secr");
mysql_select_db("daniel" , $connect);
@$result = mysql_query("insert into studier(ar, skola)
values(\"$ar\",\"$skola\")", $connect);
header("Location:index.php");?>

--code


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=23050&edit=1



Thread (12 messages)

« previous php.bugs (#37240) next »