develooper Front page | perl.beginners | Postings from December 2002

Re: problems with redirect page

Thread Previous
From:
simran
Date:
December 4, 2002 21:26
Subject:
Re: problems with redirect page
Message ID:
1039065705.5989.72.camel@pingu
Sounds to me like you are doing a redirect *after* you have sent your
normal headers... aka, you have already sent a Content-Type header
earlier in your script... take that out and it should work. 


On Thu, 2002-12-05 at 14:04, perl wrote:
> I'm trying to make a page redirect to a homepage if a user has logged in 
> before.  I have everything running except the redirect command.  Here's what 
> I have: 
> 
> print redirect ( "homepage.pl" ); 
> 
> 
> It gives me a message on the page that says: 
> 
> Status: 302 Moved location: homepage.pl 
> 
> What am I doing wrong?  The file homepage.pl is in the same directory as the 
> file that the above code is on.  Any ideas? 
> 
> Thanks! 
> 
> Josh 


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About