Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Mechanize and cookies

by ForgotPasswordAgain (Deacon)
on Dec 11, 2007 at 18:04 UTC ( #656440=note: print w/replies, xml ) Need Help??


in reply to Mechanize and cookies

HTTP::Cookies (note: WWW::Mechanize subclasses LWP::UserAgent).

Replies are listed 'Best First'.
Re^2: Mechanize and cookies
by bobdole (Beadle) on Dec 11, 2007 at 18:11 UTC
    Thanks I will take a look at that.

    I actually just used
    $mech->add_header( 'Cookie' => '...')
    and manually put in the value from my browser session and it worked fine in my script when I made a get call, so I think I will just parse out the cookie from the javascript and manually set it when I make calls to any of the pages on the site.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2016-10-01 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (1 votes). Check out past polls.