Re: CGI error: incomplete headers?

From: Date: Fri, 16 Feb 2001 21:00:04 +0000
Subject: Re: CGI error: incomplete headers?
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-5609@lists.php.net to get a copy of this message
You might want to double check your location commands... Maurice's omits a necessary space between "Location:" and the URL - this space MUST be here... ie header("Location: xxxx") is correct but header("Location:xxxx") is not. Chaz's header statement seems to omit the colon... maybe it's a typo in the email, but if the colon is omitted from the source file itself, that very well could be causing some sort of problem. Specifically, header("Location .../list.php?f=1") will not work, but header("Location: .../list.php?f=1") will. As a side-note, I see no reason for three dots at the beginning of that URL. That could also be throwing things off. If I hadn't noticed these two things to be errors, I probably wouldn't have commented on this thread because I don't see any reason for a POST to work but not a GET. I've been doing this on Win2k/PHP4/IIS5 for 6 months at least with no problems... Good luck - --toby Maurice Barnes wrote: > > While I dont have a solution for this problem I can confirm that the problem > is in the Header("Location:xxxx") command. Because of this obvious quirk > with IIS and PHP4 we have had to resort to PHP3 for a major e-business site > we were trying to upgrade to PHP4. I am not sure why this has not yet been > corrected as it has been discussed and I think its also in the bugs > database. We even tried using include files to get around the problme but > tht proved too messy. If there is anyone out there who has a solution or > willing to look into please do. This is a showstopper for users on the > Windows platform and should be fixed asap > > Regards, > Maurice > > ----- Original Message ----- > From: "Chaz Yoon" <yoon@raybeam.com> > To: <php-windows@lists.php.net> > Sent: Thursday, February 15, 2001 8:01 PM > Subject: [PHP-WIN] CGI error: incomplete headers? > > > I'm having a curious problem with PHP on IIS while setting up a message > > board (Phorum) on IIS 5.0, SQL Server 2000, and PHP 4.0.4pl1 (latest). > While > > posting a message, post.php receives a POST, processes the passed data to > > check for completeness, inserts a row into the database, and then > redirects > > the user via the header("Location .../list.php?f=1") function. However, > > once the redirect occurs, I receive the following message: > > > > CGI Error > > The specified CGI application misbehaved by not returning a complete set > of > > HTTP headers. The headers it did return are: > > > > Now, I know this has been in the archives, and I checked it out. The thing > > that's different for me is that when I refresh the page, it works just > fine. > > Somehow, the GET is different from the POST. Does anybody have any > thoughts > > on how I can fix this? Thanks. > > > > Chaz > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > > For additional commands, e-mail: php-windows-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#5609) next »