[Chicago-talk] getting past login with www::mechanize

Jay Strauss me at heyjay.com
Mon Nov 10 21:09:50 PST 2008


Hi,

I've been reading the docs and examples and faq about www::mechanize, but I
can't get past the login screen of the site I'm trying to access.

use WWW::Mechanize;
use Data::Dumper;
my $mech = WWW::Mechanize->new();
my $url = 'https://lmx.leads360.com/web/Login.aspx';
$mech->get( $url );
$mech->credentials( 'jay, 'mypass' );
$mech->set_visible( 'jay', 'mypass' );
$mech->submit;
print $mech->content( format => 'text' );
Is it because the page has so much javascript?  It seems like the above
should work.

Do you see a blatant error?  if so will you point me at it?

Thanks
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20081110/9da3728d/attachment.html>


More information about the Chicago-talk mailing list