Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Embedding cookies in requests

by wardk (Deacon)
on May 07, 2002 at 19:26 UTC ( #164797=note: print w/ replies, xml ) Need Help??


in reply to Embedding cookies in HTTP requests

Take a look at LWP::UserAgent:

$ua->cookie_jar([$cookie_jar_obj]) Get/set the cookie jar object to use. The only requirement is that the cookie jar object must implement the extract_cookies($request) and add_cookie_header($response) methods. These methods will then be invoked by the user agent as requests are sent and responses are received. Normally this will be a "HTTP::Cookies" object or some subclass. The default is to have no cookie_jar, i.e. never automatically add "Cookie" headers to the requests.


Comment on Re: Embedding cookies in requests
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (21)
As of 2015-07-31 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls