zoodog has asked for the wisdom of the Perl Monks concerning the following question:
The output I get is "Status: 302 Found Location: http://localhost/rbsaws/ " instead of the webpage I hoped for. I get the same result when running it from the command line. I've tried different variations on the above code found elsewhere with no improvement. I'd appreciate any suggestions you might provide.#!c:\perl\bin\perl.exe use strict; #use CGI::Carp qw(fatalsToBrowser); use CGI; use warnings; my $query= new CGI; #print "HTTP/1.0 200 OK\n"; print "Content-Type: text/html\n\n\n"; print $query->redirect('http://localhost/rbsaws/');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: url redirection
by Corion (Patriarch) on Dec 04, 2010 at 16:32 UTC | |
by ikegami (Patriarch) on Dec 04, 2010 at 17:12 UTC | |
by zoodog (Initiate) on Dec 04, 2010 at 17:33 UTC | |
by moritz (Cardinal) on Dec 04, 2010 at 16:36 UTC | |
by zoodog (Initiate) on Dec 04, 2010 at 17:04 UTC | |
by moritz (Cardinal) on Dec 04, 2010 at 18:04 UTC | |
by zoodog (Initiate) on Dec 04, 2010 at 16:39 UTC | |
by zoodog (Initiate) on Dec 04, 2010 at 17:07 UTC |