#! /usr/bin/perl -w
use LWP::UserAgent;
use HTTP::Cookies;
use HTTP::Request::Common qw(POST);
$ua = LWP::UserAgent->new;
$ua->cookie_jar(HTTP::Cookies->new(file => "lwpcookies.txt",
autosave => 1));
POST 'http://login.yahoo.com',
[login=>'nick_chirca',
passwd=>'mypassword',
];
my $res = $ua->request($req);
print $res->as_string;
But I get this:
"Name "main::req" used only once: possible typo at post1 line 12.
Can't call method "method" on an undefined value at
/usr/lib/perl5/site_perl/5.005/LWP/UserAgent.pm line 163. "
Can anyone tell me how to actually be able to login into my yahoo account
with LWP/POST ?
Nick...
-------------------------------------------------------------------------
Go to my main website http://terra.vl.ro/nick/ and find out more about me.
I am seeking for a job ! See http://terra.vl.ro/nick/resume.html to read
about my skills and experience.