Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Cookies, JavaScript and User Agent Problems

by Util (Priest)
on Oct 25, 2011 at 23:12 UTC ( [id://933735]=note: print w/replies, xml ) Need Help??


in reply to Cookies, JavaScript and User Agent Problems

You are creating $ua, but LWP:Simple already has a $ua. You need to import $ua instead of creating your own, since yours will not get used by LWP::Simple.
use LWP::Simple qw( $ua getstore ); # ... $ua->cookie_jar( HTTP::Cookies->new( file => $cookie_path, autosave => 1 ) );
This is documented in LWP::Simple, but only by a single line of text, with no example.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found