in reply to Cookiejar for www::mechanize
Using an existing file of cookies with WWW::Mechanize can be done as follows:
(Substitute HTTP::Cookies::Netscape or HTTP::Cookies::Explorer to use a cookie file from those browsers.... my $agent = WWW::Mechanize->new(); my $cj = HTTP::Cookies->new(file => "/file/to/cookie_jar"); $agent->cookie_jar($cj); ...
Arjen
|
---|