Re: redirection halts if a message is printed

2002-11-04 Thread Sumitro Chowdhury
Understood. Thanks to Chris and Richard. Sumitro Chowdhury.  Do you Yahoo!? HotJobs - Search new jobs daily now

Re: redirection halts if a message is printed

2002-11-04 Thread Richard Clarke
Sumitro Chowdhury wrote: 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 temporarily u

Re: redirection halts if a message is printed

2002-11-04 Thread Chris Shiflett
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

redirection halts if a message is printed

2002-11-04 Thread Sumitro Chowdhury
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; $r