[EMAIL PROTECTED] wrote:
> The cookies are key to being able to get inside the site. I have never
> done this with LWP, started playing around with cookie jar - but have
> not had any luck.
Here's a bit of my custom spider class's new($)...
$self = LWP::RobotUA->new(
agent => $_user_agent,
from => $_from,
requests_redirectable =>
[ 'GET',
'HEAD',
'POST', # default is just GET and HEAD
],
);
# use cookies
$self->cookie_jar(HTTP::Cookies->new());
I don't need to save cookies from session to session... but if you do, there's
a way to load a cookie jar from a file.
--
Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902
Hispanic Business Inc./HireDiversity.com Software Engineer