Octavian Rasnita <mailto:[EMAIL PROTECTED]> wrote: : Hi, : : I have tried the following script: : : use CGI; : my $q = new CGI; : : print "Content-type: text/html\n\nTestare\n"; : $q->redirect("http://localhost/");
That doesn't look right. When I run it, I don't get a redirect. I get a text page with Testare on it. I'm running Apache on windows XP. I think printing the redirect is the most reliable way to redirect a page. It makes sense too. The redirect should be in the header. You can't print the header more than one. use CGI; my $q = new CGI; print $q->redirect( 'http://localhost/' ); HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>