Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Embedding cookies in requests

by Torgo (Beadle)
on May 07, 2002 at 15:07 UTC ( [id://164792]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Embedding cookies in requests
in thread Embedding cookies in HTTP requests

Yes, I'm well aware of Cookie::Jar. I'm looking for a solution that will let me send cookies that I create on the fly to simulate different users, not something to store cookies in.
And if I wanted to be talked down to, I would have bought Perl for Dummies.
--
I write the code while the master is away!

Replies are listed 'Best First'.
Re: Re: Re: Embedding cookies in requests
by Fletch (Bishop) on May 07, 2002 at 15:31 UTC

    Perhaps if you read the documentation harder, you'd see that HTTP::Cookies has a set_cookie method which allows you to add cookies to a jar dynamically. You then use add_cookie_header to add the correct headers to a request object.

    And Perl for Dummies wouldn't help you either if you read it half as well as you've apparently read the HTTP::Cookies and LWP documentation.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://164792]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.