Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mech and NTLM authentication?
by ikegami (Patriarch) on Feb 12, 2009 at 15:51 UTC | |
by Anonymous Monk on Feb 12, 2009 at 19:01 UTC | |
by ikegami (Patriarch) on Feb 12, 2009 at 20:08 UTC | |
by Anonymous Monk on Feb 12, 2009 at 20:22 UTC |