HTTP::redirect()

From: Date: Wed, 31 Jul 2002 07:35:22 +0000
Subject: HTTP::redirect()
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8098@lists.php.net to get a copy of this message
Hello, Why HTTP::redirect() just use a header Location instead of a complete http redirect ? There are problems sometimes with url like index.php?a=xxx&g=xxx. + header('Request-URI: ' . $url); + header('Content-Location: ' . $url); header('Location: ' . $url); exit(); Also, most of the time, we don't want a cache for redirections, so we could put an option with something like this : header('Expires: Sat, 1 Jan 2000 00:00:00 GMT'); header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); What do you think about this ? thanks ! Olivier

« previous php.pear.dev (#8098) next »