LoginSignup
0
0

More than 3 years have passed since last update.

perl メモ

Posted at

リダイレクト


#!/usr/bin/perl -w

#use CGI qw(:standard);
#use CGI qw(:standard -nph);

use CGI qw(:all);
use CGI::Carp qw(fatalsToBrowser);

#print CGI::redirect('http://yahoo.com/');

my $query = CGI->new();
#$query->nph(1);
print $query->redirect(-uri=>'http://yahoo.co.jp', -nph=>0, -status=>303);
#print $query->header(-charset=>'UTF-8');
#print $query->header(-location => 'http://yahoo.com/mizu');
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0