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

I've searched endlessly on the web but CANNOT find NTLM support for Mechanize.
Does anyone know how to do that?

The following code gives a GETing error:
$mech = WWW::Mechanize->new('keepalive' => 1); my $user = 'domain/user'; my $pass = 'pass'; $mech->credentials(user, pass); $url = "http://URL/TO/ACCESS.aspx"; $mech ->get($url);

Replies are listed 'Best First'.
Re: WWW::Mechanize with NTLM authentication
by runrig (Abbot) on Sep 04, 2013 at 21:09 UTC
      Authen::NTLM is installed

      Do I also need to use LWP::Authen::NTLM?

      I'm guessing all I need to do is import one of the two and proceed as before.
        No, if you call credentials() just like the docs say to (one thing I see is that you have 'domain/user' instead of "domain\\user"), then the libary gets imported automatically. You don't need to mention NTLM in your program.