Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Passing a cookie with LWP::UserAgent

by inman (Curate)
on May 13, 2005 at 19:08 UTC ( #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.

  • Comment on Re: Passing a cookie with LWP::UserAgent

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2021-05-11 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (119 votes). Check out past polls.

    Notices?