Groups
Sign in
Groups
WWW::Mechanize users
Conversations
About
Send feedback
Help
Perl Mechanize with NTLM authentication?
312 views
Skip to first unread message
Mark Kennedy
unread,
Sep 4, 2013, 3:35:21 PM
9/4/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to www-mecha...@googlegroups.com
I've searched
endlessly
on the web for how to do NTLM authentication wtih WWW::Mechanize for Perl
The following gives a GET error:
$mech = WWW::Mechanize->new('keepalive' => 1);
my $user = 'domain/username';
my $pass = 'password';
$mech->credentials(user, pass);
$url = "
http://URL/I/NEED/TO/ACCESS.aspx
";
$mech ->get($url); <---------- //ERROR; Requires NTLM authorization
Daniel de Oliveira Mantovani
unread,
Sep 4, 2013, 5:48:42 PM
9/4/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to www-mecha...@googlegroups.com
use WWW::Mechanize;
my $mech = WWW::Mechanize->new(keep_alive => 1);
$mech->credentials('
www.company.com:80
', '', "MyDomain\\MyUserCode",
'MyPassword');
$mech->get("
http://foo.com.br
");
Maybe because "keepalive" doesn't exist ? Or because you are using
credentials in the wrong way ? Thy the code above.
> --
> You received this message because you are subscribed to the Google Groups
> "WWW::Mechanize users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
www-mechanize-u...@googlegroups.com
.
> To post to this group, send email to
www-mecha...@googlegroups.com
.
> Visit this group at
http://groups.google.com/group/www-mechanize-users
.
> For more options, visit
https://groups.google.com/groups/opt_out
.
--
-dom
--
Daniel de Oliveira Mantovani
Business Analytic Specialist
Perl Evangelist /Astrophysics hobbyist.
+55 11 9 8538-9897
XOXO
Reply all
Reply to author
Forward
0 new messages