Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Need help with WWW::Mechanize and Chrome cookies

by jo37 (Deacon)
on Jul 08, 2021 at 13:37 UTC ( [id://11134797]=note: print w/replies, xml ) Need Help??


in reply to Need help with WWW::Mechanize and Chrome cookies

I don't fully understand your problem and thus cannot tell if it is relevant, but the value of $cookie_dir differs in your examples.

Greetings,
-jo

$gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$

Replies are listed 'Best First'.
Re^2: Need help with WWW::Mechanize and Chrome cookies
by bakiperl (Beadle) on Jul 08, 2021 at 13:54 UTC
    The first example uses the cookie file while in the second one uses the directory where the cookie resides.

    The code that uses WWW::Mechanize::Chrome loads the credentials from the cookie and allows the login but the code that uses the WWW::Mechanize does not. That's the problem.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-16 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found