Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Passing a cookie with LWP::UserAgent

by inman (Curate)
on May 13, 2005 at 19:08 UTC ( [id://456852]=note: print w/replies, xml ) Need Help??


in reply to Passing a cookie with LWP::UserAgent

Try using one of the HTTP::Cookies derivatives such as HTTP::Cookies::Netscape or HTTP::Cookies::Microsoft depending on the browser that you are using. You can pre-populate cookies using your browser and then use them in your script.

Remember that session cookies will be deleted when a browser session ends. It may be the case that you need to get your script to do the login part in order to generate the session cookies that are later used in the script. Check out WWW::Mechanize as a means of logging in using a form etc.

Log In?
Username:
Password:

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

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

    No recent polls found