Your $ua->request($req) returns an HTTP::Response object, according to the documentation for LWP::UserAgent.
The base method in HTTP::Response does what you want. Here is some example code, without any error checking though:
my $response = $ua->request($req); # Assumes $req is an HTTP::Request + object print $response->base;
In reply to Re: LWP::UserAgent redirection troubles
by tomhukins
in thread LWP::UserAgent redirection troubles
by tmbg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |