Hello,
I see redirection behaves differently when a message
is printed beforehand then when redirection happens
alone.
Case I ( simple redirection ):
--
package redirect.pm
use Apache::Const -compile =
qw(HTTP_MOVED_TEMPORARILY);
sub handler (
my $r = shift;
Sumitro Chowdhury wrote:
Case I ( simple redirection ):
--
package redirect.pm
use Apache::Const -compile =
qw(HTTP_MOVED_TEMPORARILY);
sub handler (
my $r = shift;
$r-content_type('text/html');
$r-headers_out-{'Location'}=
http://new.location;;
return
Sumitro Chowdhury wrote:
snip
My question is :
a)What is the reason for this behaviour ? Why does
printing a message halt the redirection ?
I don't know how to explain this really but, HTTP_MOVED_TEMPORARILY
implies a 302 status code which means,
The requested resource resides
Understood.
Thanks to Chris and Richard.
Sumitro Chowdhury.
Do you Yahoo!?
HotJobs - Search new jobs daily now