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

Hi Dear Monks, I am trying to use WWW:Mechanize on my prod server link and I am receiving the following error: Error GETing http://"server link:" Unauthorized at script.pl line 11 ( line 11 is $mech->get($url);) Please advice. Thanks,
  • Comment on using WWW::Mechanize and receiving Unauthorized at line $mech->get($url);

Replies are listed 'Best First'.
Re: using WWW::Mechanize and receiving Unauthorized at line $mech->get($url);
by Corion (Patriarch) on May 08, 2009 at 17:44 UTC

    This means that the page you tried to request returned the HTTP status code 401, "Unauthorized". So you're not allowed to access that resource, whatever it is.

    A reply falls below the community's threshold of quality. You may see it by logging in.