Hi all,
I'm missing something here with regards http redirects.
I'm trying to have my script redirect to itself through the browser so that the
URL changes in the browser.
When I send the headers myself:
print 'Location: ' . $_[0] . "\n";
print 'Connection: close' . "\n\n";
The redirect works but the web address does not change in the browser. When I
use:
use CGI.pm;
my $q = new CGI;
print $q->redirect(
-location => $_[0],
-status => 301,
);
The redirect works and changes the browser URL.
What is CGI.pm doing differently to me?
I want to do this without using CGI.pm (so I understand what's going on).
Thanks in advance,
Nigel
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/