Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Getting Cookies

by PerlSufi (Friar)
on Jul 05, 2013 at 17:25 UTC ( [id://1042746]=note: print w/replies, xml ) Need Help??


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);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1042746]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-03-19 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found