#!perl; use strict; use warnings; use LWP::UserAgent; use HTTP::Request::Common; my $url = ""; # Set up the ntlm client and then the base64 encoded ntlm handshake message my $ua = new LWP::UserAgent(keep_alive=>1); $ua->credentials('', '', "", ''); my $request = GET $url; print "--Performing request now...-----------\n"; my $response = $ua->request($request); print "--Done with request-------------------\n"; if ($response->is_success) { print "It worked!->" . $response->code . "\n" } else { print "It didn't work!->" . $response->code . "\n" } #### #!perl; use strict; use warnings; use LWP::UserAgent; use HTTP::Request::Common; use Authen::NTLM qw(nt_hash lm_hash); my $my_pass = ""; my $client = new_client Authen::NTLM(lm_hash($my_pass), nt_hash($my_pass)); # How does the ntlm functions tie in with Lwp methods? my $ua = LWP::UserAgent->new(keep_alive=>1); $ua->proxy('http',''); my $resp = $ua->request(GET "http://www.perl.com"); my $htmcode = $resp->{_content}; print "here comes the output...\n$htmcode\n";