- 论坛徽章:
- 0
|
试过好多次了都不行,一直都是停在登录页面。人快疯了。。。也不知道怎么改才行。恳请斑竹大人和各位大侠帮忙啊,感激涕零
#!/usr/bin/perl
use strict;
use LWP::UserAgent;
use HTTP::Cookies;
my $ua = LWP::UserAgent->new;
$ua->cookie_jar(HTTP::Cookies->new(file=>'mycookies.txt',autosave=>1));
my $res= $ua->post('http://www.dgfdc.org/admin.php?mod=phpcms&file=login',
[
username => 'pxczy',
password => '123456',
cookietime => '0',
forward => '?',
],
);
$res = $ua->get('http://www.dgfdc.org/admin.php?mod=phpcms&file=html&action=show');
open(FILE, '>a.html');
print FILE $res->content;
close FILE; |
|