|XP is just a number|
Redirect with Mechanizeby cdherold (Monk)
|on Sep 30, 2007 at 19:19 UTC||Need Help??|
cdherold has asked for the
wisdom of the Perl Monks concerning the following question:
I am using WWW::Mechanize to follow a redirect within a website (http://www.nature.com/nature/index.html). I would like Mechanize to follow the redirect that occurs on clicking the journal cover (with URL link: http://www.nature.com/nature/current_issue). The redirect shuttles the browser to a URL that includes specifics on the date of the issue, but does not include the base URL address (http://www.nature.com). I am using the following code:
The code follows the redirect, however, the redirect URL address is local not global; hence, I end up on a page that is only a partial UTL i.e. "The requested URL /nature/journal/v449/n7161/ was not found on this server."
How do I get Mechanize to fill in the global URL?