Anything you can see wrong with this? I NEVER see anything in cookies.txt...
#!/usr/bin/perl -W
use LWP::UserAgent;
use HTTP::Cookies;
use HTTP::Request;
use strict;
my $ua = LWP::UserAgent->new;
$ua->cookie_jar(HTTP::Cookies->new(file => 'cookies.txt', autosave => 1));
my $res = $ua->request(HTTP::Request->new(GET => 'http://www.test.com'));
my $req = HTTP::Request->new(POST => '');
$req->content_type('application/x-www-form-urlencoded');
$req->content('ulogin=x&upassword=x');
$res = $ua->request($req);
open my $file, ">test.html" or die "Couldn't open test.html: $!";
print $file $res->as_string;
close $file;
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
