Check the POD for HTTP::Cookies. It has lots of manipulation hooks. I'm sure mech will save the manipulated object correctly, though I didn't test it. For example-
print $mech->cookie_jar->as_string, $/; $cookie_jar->scan(sub { print "Cookie from ", $_[4], "\n" }); $cookie_jar->clear(); # Can take args too! # Maybe put a cookie back... $cookie_jar->set_cookie( @your_cookie_data );
In reply to Re: Mechanize cookie jar update?
by Your Mother
in thread Mechanize cookie jar update?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |