neoanantha has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to login to my ADSL Modem through it's website and reboot. I am getting a popup window asking for login and password. I am familiar with basics of WWW::Mechanize. But i could not figure out how to populate the login and password using the same. Can we do this with WWW::Mechanize library or should I be using something else. Please give me a pointer towards populating the login and password information into a popup window...I should be ok from there
  • Comment on Help: populate login password into a popup window of a website

Replies are listed 'Best First'.
Re: Help: populate login password into a popup window of a website
by kyle (Abbot) on May 30, 2008 at 02:01 UTC

    My guess is that this is basic HTTP authentication. In that case, use the credentials() method on your WWW::Mechanize object to tell it what login and password to use.

    my $mech = WWW::Mechanize->new(); $mech->credentials( 'login', 'password' ); # further $mech usage
      thanks for the lead kyle