perl中设置POST登录时的重定向 默认地, perl提交post登录时是不会重定向的 要让它重定向, 可以用如下方法: my $cookie = HTTP::Cookies->new(); push @{$ua->requests_redirectable), 'POST';