in reply to Re: Perl LWP Router login
in thread Perl LWP Router login

Thanks this was very helpfull. I had to modify the script a little because i had a "401 authorization error" when i tried to connect. I solved the problem by adding the portnumbers after the url.
!/usr/bin/perl -- use strict; use warnings; use WWW::Mechanize 1.73; my $browser = WWW::Mechanize->new( autocheck => 1 ); $browser -> agent("Mozilla/5.0"); $browser -> credentials('192.168.1.1:80','NETGEAR WNDR3800','admin' => + 'guess'); $browser -> timeout(10); $browser->show_progress( 1 ); $browser->get('http://192.168.1.1:80'); if( $browser->success ){ die " we logged in game over"; }

Replies are listed 'Best First'.