jnofzinger has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; use HTTP::Cookies; use Crypt::SSLeay; my $cookie_jar = HTTP::Cookies->new(file => 'cookie', autosave=>1, ign +ore_discard => 1); my $agent = WWW::Mechanize->new(cookie_jar => $cookie_jar, autocheck = +> 0); $ENV{HTTPS_CA_DIR} = 'cert/'; my $user = 'xxxx'; my $pass = 'xxxx'; $url = 'https://psmsadmin.vzw.com/vzw-scat-ui/Welcome.do'; $agent->get($url); $agent->form_name('loginForm'); $agent->set_fields( userId => $user, password => $pass ); $agent->submit(); print $agent->{content}; $agent->form_name('groupForm'); $agent->submit();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Mechanize login issue
by Gangabass (Vicar) on Jan 13, 2011 at 00:38 UTC | |
by jnofzinger (Initiate) on Jan 13, 2011 at 04:00 UTC | |
by Gangabass (Vicar) on Jan 13, 2011 at 13:17 UTC | |
by jnofzinger (Initiate) on Jan 13, 2011 at 15:01 UTC | |
by Gangabass (Vicar) on Jan 13, 2011 at 16:09 UTC | |
|