Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Unfortunately $content does not contain the correct response. Is there a way to get a correct logon to the cisco.com page ? Thanks!#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use WWW::Mechanize; use HTTP::Cookies; my $url = 'https://sso.cisco.com/autho/forms/CDClogin.html'; my $mech = WWW::Mechanize->new( cookie_jar => HTTP::Cookies->new( file + => 'cookies.txt') ); $mech->get($url); $mech->form_name('login_form'); $mech->field(userInput => 'user'); $mech->field(passwordInput => 'password'); $mech->click(); my $content = $mech->content(); print Dumper($content);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize and cisco.com
by marto (Cardinal) on Dec 07, 2012 at 13:44 UTC | |
|
Re: WWW::Mechanize and cisco.com
by Anonymous Monk on Dec 08, 2012 at 03:58 UTC | |
by Anonymous Monk on Dec 08, 2012 at 20:03 UTC | |
|
Re: WWW::Mechanize and cisco.com
by Anonymous Monk on Dec 08, 2012 at 03:48 UTC |