Am I missing something?use strict; use warnings; use WWW::Mechanize; use Crypt::SSLeay; use Authen::NTLM; # Turn buffering off $| = 1; # create the mech object my $mech = WWW::Mechanize->new( ); $mech->agent_alias( 'Windows IE 6' ); # configure the proxy $mech->proxy(['https', 'http'], 'http://proxy-server.com:80'); my $url = 'http://somewebsite.com/Pages/Default.aspx'; $mech->credentials('http://somewebsite.com/Pages/Default.aspx', '', "D +OMAIN\\user", 'password'); my $response = $mech->get( $url ); use Data::Dumper; print Dumper($response);
In reply to mech and NTLM authentication? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |