in reply to redirect in more than standalone mode
CGI's redirect method is a shortcut which outputs a full set of HTTP headers including a Location: line. If you want to display some HTML while having a redirect header, you can do something like the following:
use strict; use CGI; my $q = CGI->new; print $q->header( -type => 'text/html', -location => 'http://somewhere.com/' ); print "<h1>Here's some HTML.</h1>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: redirect in more than standalone mode
by gmacfadden (Sexton) on Nov 17, 2006 at 21:50 UTC | |
by gloryhack (Deacon) on Nov 17, 2006 at 23:28 UTC |