#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $url= 'http://192.168.0.1/WanService.html'; my $mech = WWW::Mechanize->new( autocheck => 1 ); $mech->credentials( '192.168.0.1:80', 'FVS318', 'admin' => 'secret' ); $mech->get( $url ); print $mech->content();