hi,

i wanna create a program (under FreeBSD) that log me automatically on a site but i 
need to accept cookie tu do this:

use LWP::UserAgent;
use HTTP::Cookies;

$ua = LWP::UserAgent->new;
$ua->cookie_jar(HTTP::Cookies->new);

my $req=HTTP::Request->new(POST => 'http://www.toto.fr);
$req->content_type('application/x-www-form-urlencoded');
$req->content('login=toto&pass=titi');

my $res = $ua->request($req);

if ($res->is_success)
{
    print $res->content:
}

but the page i receive is a page that says me that i haven't enable cookie on my 
computer...

if anyone has an idea ...he's welcome!!

Thanks

Nico

Reply via email to