No such thing as a small change | |
PerlMonks |
Re: How can I find where I've been redirected to, in my scrapper?by jcb (Parson) |
on Jan 11, 2021 at 03:16 UTC ( [id://11126735]=note: print w/replies, xml ) | Need Help?? |
As you have found, the response object can report the final URL that was retrieved. If you actually need the redirect responses themselves, the previous and redirects methods on the final HTTP::Response object will give you the intermediate responses. If you need to decide whether or not to follow the redirect, you can use the simple_request method instead of the request method on LWP::UserAgent.
In Section
Seekers of Perl Wisdom
|
|