in reply to Re^2: www::mechanize and www:mechanize::firefox
in thread www::mechanize and www:mechanize::firefox
I've log-in into the site using www::mechanize::firefox and that works well. I'm now trying to get the cookies after logging in but I get the error message 'Can't call method "declare" on an undefined value at /usr/local/share/perl/5.18.2/HTTP/Cookies/MozRepl.pm line 108' and I'm not sure why. Any ideas on where I'm going wrong here?
my $cookie_jar = HTTP::Cookies::MozRepl->new(); my $user_agent_name='Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:39.0) Ge +cko/20100101 Firefox/39.0'; my $agent = WWW::Mechanize->new( agent=>$user_agent_name, cookie_jar => $cookie_jar, autocheck => 1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: www::mechanize and www:mechanize::firefox
by Corion (Patriarch) on Aug 08, 2015 at 14:12 UTC | |
|
Re^4: www::mechanize and www:mechanize::firefox
by shagbark (Acolyte) on Apr 02, 2016 at 06:21 UTC |