in reply to Re^3: Getting Cookies
in thread Getting Cookies

Oh. It turns out that WWW::Mechanize::Firefox doesn't save cookies to the jar? :(

Replies are listed 'Best First'.
Re^5: Getting Cookies
by Corion (Patriarch) on Jul 05, 2013 at 17:34 UTC

    Have you read WWW::Mechanize::Firefox and HTTP::Cookies::MozRepl?

    What makes you think that HTTP::Cookies would work together with WWW::Mechanize::Firefox and/or that WWW::Mechanize::Firefox would use a cookie jar outside of Firefox?

      Thanks for your response, Corion. It was silly of me to presume.
      I tried the following code with Mechanize::Firefox and won't work to save cookies:
      my $cookie_jar = HTTP::Cookies::MozRepl->new( file => 'C:\path\to\cook +ies.dat', autosave => 1, ignore_discard => 1);