in reply to Re: Stay logged in between requests with WWW::Mechanize
in thread Stay logged in between requests with WWW::Mechanize

I find that setting the cookie_jar and "autosave" in the call to 'new()' causes W::M to spit out errors - so I tend to do it manually.
Like what? I've never had problems with it.
  • Comment on Re^2: Stay logged in between requests with WWW::Mechanize

Replies are listed 'Best First'.
Re^3: Stay logged in between requests with WWW::Mechanize
by oko1 (Deacon) on Nov 15, 2008 at 13:29 UTC

    Starting with an empty cookie file and replacing the empty call to 'new()' with 'new(cookie_jar=>...', etc., results in

    Use of uninitialized value in pattern match (m//) at /usr/share/perl5/ +HTTP/Cookies.pm line 425. /tmp/cookies does not seem to contain cookies at /usr/share/perl5/HTTP +/Cookies.pm line 426.

    If I simply use 'new()', it doesn't happen.


    --
    "Language shapes the way we think, and determines what we can think about."
    -- B. L. Whorf