sulfericacid has asked for the wisdom of the Perl Monks concerning the following question:
How do you get the URL of the page after your last request via www::mechanize? I was reading the DOCS and it looks like $mech->uri() should hold the URL but all it does is error out with
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"
sulfericacid
I have a feeling this site occassionally redirects to an IP address when the traffic is at high tide and I need to test whether or not my URLs are still accessible.Use of uninitialized value in string at bot.pl line 194.
my $mech = WWW::Mechanize->new(); $mech->get($url); print $mech->uri();
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"
sulfericacid
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to get back the url of a page
by cormanaz (Deacon) on May 16, 2007 at 16:29 UTC | |
Re: How to get back the url of a page
by xhunter (Sexton) on May 16, 2007 at 17:11 UTC | |
by cormanaz (Deacon) on May 16, 2007 at 20:42 UTC | |
by sulfericacid (Deacon) on May 16, 2007 at 21:39 UTC | |
by Anonymous Monk on May 19, 2007 at 12:42 UTC |
Back to
Seekers of Perl Wisdom