in reply to WWW::Mechanize and cookies

According to the docs for LWP::UserAgent, which is a superclass of Test:WWW::Mechanize, you obtain the cookie jar by $robot->cookie_jar, not $robot->{cookie_jar}.

Replies are listed 'Best First'.
Re^2: WWW::Mechanize and cookies
by geektron (Curate) on Dec 30, 2004 at 03:35 UTC
    well, both ways actually work.

    one is direct access to the hashref ( $robot->{cookie_jar} ) and the other is the "right" way to do it ... through an accessor method.

    it turns out that all cookies for the action-set i was following *are* set by javascript, hence, no cookies for the Test::WWW::Mech based agent.