GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 13-Aug-2004, 07:05
russ russ is offline
New Member
 
Join Date: Aug 2004
Location: Hampshire
Posts: 14
russ is on a distinguished road

http redirects...


Any one have an issue when sending 301 moved permanently and getting a 302 found output instead??

E.g.

PHP Code:

<?
//-------SNIP--------
//redirect ($url has been set before)

header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.isitaboat.co.uk/$url");
header("Connection: close");

?>


I know the manual for php header (http://uk.php.net/header) states: " The second special case is the "Location:" header. Not only does it send this header back to the browser, but it also returns a REDIRECT (302) status code to the browser unless some 3xx status code has already been set."

Now this is weird - because I HAVE set the 301 status code...and its over writing it...

The only "issue" i can think of is that my server is running 4.3.2, not 4.3.8. But I have asked for an upgrade...but they take their time...


Any ideas or help would be good!
  #2  
Old 13-Aug-2004, 07:54
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Yes, I recall reading a user note claiming such a 'bug', though I cannot remember the exact URL to link to from here and now. It would be wise to upgrade your PHP version asap.
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The specified CGI application misbehaved by not returning a complete set of HTTP head bacchus MySQL / PHP Forum 6 16-Jul-2007 22:12
The Specified CGI Application Misbehaved by not running a complete set of HTTP Header SSS Computer Software Forum - Windows 2 17-Oct-2006 00:01
http Library in C wbutler C Programming Language 2 06-Feb-2004 07:55
web server in secure mode not connecting to http application tcsasp Apache Web Server Forum 0 06-Nov-2003 01:08
wannabrowswer - http user agent spoofing jrobbio Web Design Forum 2 22-Mar-2003 08:11

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:38.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.