Chinaunix首页 | 论坛 | 博客
  • 博客访问: 175671
  • 博文数量: 159
  • 博客积分: 7007
  • 博客等级: 准将
  • 技术积分: 1750
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-17 15:05
文章分类

全部博文(159)

文章存档

2010年(39)

2009年(106)

2008年(14)

我的朋友

分类:

2010-06-22 10:26:11


#!/usr/bin/perl

use strict;

use LWP::UserAgent;

my $ua = LWP::UserAgent->new;
$ua->cookie_jar( {} );
my $res= $ua->post('',
    [
        TPL_username => '13579',
        TPL_password => '13579',
        actionForStable => 'enable_post_user_action',
        action => 'Authenticator',
        event_submit_do_login => 'anything',
   
    ],

);

$res = $ua->get('');


open(FILE, '>a.html');
print FILE $res->content;
close FILE;


阅读(529) | 评论(0) | 转发(0) |
0

上一篇:cpan Crypt::SSLeay出错

下一篇:perl模块安装

给主人留下些什么吧!~~