リダイレクトのためのレスポンスヘッダ

Perl Add comments

phpを使っていると、ステータスコードを描くのを忘れてしまうので、メモしておく。

print "Status: 302 Moved\n";
print "Location: http://127.0.0.1/\n\n";


または、

use CGI;
print CGI::redirect( "http://127.0.0.1/" );

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS ログイン