Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: LWP hit button to continue

by bliako (Monsignor)
on Mar 23, 2021 at 19:44 UTC ( [id://11130235]=note: print w/replies, xml ) Need Help??


in reply to LWP hit button to continue

You have some options. But first make sure that your $ua accepts cookies and also has an acceptable user-agent string:

use HTTP::CookieJar::LWP (); $ua = LWP::UserAgent->new; my $jar = HTTP::CookieJar::LWP->new; $ua->cookie_jar($jar); $ua->agent('underage bot dont let me in!!!'); # <<< change that

Bonus: using HTTP::Cookies::Mozilla can be helpful if you ever need to load firefox's cookie jar.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found