RE: LWP with SSL and Client Side Cookies...

<[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.