This week's book giveaway is in the JavaScript forum.
We're giving away four copies of JavaScript Promises Essentials and have Rami Sarieddine on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Redirect with CGI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Redirect with CGI" Watch "Redirect with CGI" New topic
Author

Redirect with CGI

victor kamat
Ranch Hand

Joined: Jan 10, 2007
Posts: 247
I am using the CGI program to redirect but it doesn't work.
Can somebody help me. Thanks

#!/usr/local/bin/perl -T

use strict;
use CGI ':standard';

my $cgi = new CGI;

print header;
print start_html('Hello World');
$cgi.redirect(" http://www.yahoo.com");
print end_html();

exit;
 
jQuery in Action, 2nd edition
 
subject: Redirect with CGI