Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I was just checking the cgi redirect and wondering that it's not redirecting to the page specified. Below is the simple code:
#!C:/perl/bin/perl.exe use strict; use CGI qw(:standard); print header,start_html,h1('redirecting to a different page'); sleep 5; print redirect('http://localhost/html/test.html'); print end_html;
Upon executing on browser I am getting the output "'redirecting to a different page" but it's not redirecting to the html page mentioned. Am I doing anything wrong? Please let me know.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi redirect
by keszler (Priest) on Nov 26, 2009 at 14:48 UTC | |
by Anonymous Monk on Nov 26, 2009 at 15:02 UTC | |
by keszler (Priest) on Nov 26, 2009 at 15:18 UTC | |
by Anonymous Monk on Nov 26, 2009 at 15:38 UTC | |
by Anonymous Monk on Nov 26, 2009 at 16:55 UTC | |
by gmargo (Hermit) on Nov 26, 2009 at 17:16 UTC | |
|