[ale] Perl https download

Christopher Fowler cfowler at outpostsentinel.com
Wed Jul 25 21:05:09 EDT 2007


This is an example.  Use it to get a cookie that is valid for the
website then go grab whatever you need

my $ua = LWP::UserAgent->new();
$ua->cookie_jar({ file => "$ENV{HOME}/.cookies.txt" });
my $response = $ua->post("$proto://$ARGV[0]/cgi-bin/login",
    { 'user' => "root", 'pass' => "password" });





More information about the Ale mailing list