in reply to Re: url redirection
in thread url redirection

FWIW if you use CGI through Apache there's no need for the HTTP/1.0 part. And if you do a redirect, you shouldn't be printing 200 OK too.

So far it worked fine for me to print nothing except the CGI->redirect header:

use CGI; print CGI->redirect('http://example.com/');

Replies are listed 'Best First'.
Re^3: url redirection
by zoodog (Initiate) on Dec 04, 2010 at 17:04 UTC
    Not sure what I'm missing, but
    #!c:\perl\bin\perl.exe use strict; #use CGI::Carp qw(fatalsToBrowser); use CGI; use warnings; print $CGI->redirect('http://localhost/rbsaws/');
    produces a "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers." for me.