perldoc LWP::UserAgent 를 보니 다음과 같은 내용이 나오네요. 원래 기본적으로
GET, HEAD만 리다이렉트를 따라 갑니다. POST 도 추가하려면 아래와 같이....
$ua->requests_redirectable( \@requests )
This reads or sets the object’s list of request names that
"$ua->redirect_ok(...)" will allow redirection for. By default,
this is "[’GET’, ’HEAD’]", as per RFC 2068. To change to include
’POST’, consider:
push @{ $ua->requests_redirectable }, ’POST’;