in reply to get URI of redirected page with LWP

Searching the documentation of LWP::UserAgent for "redirect" returns several relevant hits.

For example:

simple_request
my $request = HTTP::Request->new( ... ); my $res = $ua->simple_request( $request ); my $res = $ua->simple_request( $request, $content_file ); my $res = $ua->simple_request( $request, $content_cb ); my $res = $ua->simple_request( $request, $content_cb, $read_size_hint +);
This method dispatches a single request and returns the response received. Arguments are the same as for the request in LWP::UserAgent described above.

The difference from request in LWP::UserAgent is that simple_request will not try to handle redirects or authentication responses. The request in LWP::UserAgent method will, in fact, invoke this method for each simple request it sends.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]