You need to set redirect_ok() to a true value on the the LWP::UserAgent object and it should take of the redirection for you. You will also need to add a cookie jar so that the appropriate Cookie header is sent. i.e. add this before you call request():
use HTML::Cookie; $ua->redirect_ok(1); $ua->cookie_jar(HTTP::Cookies->new(file => '/tmp/cookies.txt', autosa +ve => 1 ));
/J\
In reply to Re: Accessing dynamic webpages
by gellyfish
in thread Accessing dynamic webpages
by pduffy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |