Well, you can still use LWP::Simple, but you have to do just about everything the full-blown version uses. From the docs:
The module will also export the LWP::UserAgent object as
`$ua' if you ask for it explicitly.
So that means you can do something like (untested!):
use LWP::Simple qw(get $ua);
use HTTP::Cookies;
$jar = HTTP::Cookies->new;
... do other things with $jar ...
$ua->cookie_jar($jar);
...
$result = get $url;
But there's not much different there from just using the real LWP::UserAgent.
-- Randal L. Schwartz, Perl hacker |