in reply to Re^3: WWW::Mechanize Problem
in thread WWW::Mechanize Problem

Hi,
I included the module LWP::Authen::Ntlm in my code but i am getting an error "Can't locate Authen/NTLM.pm in @INC". But i checked that the file Ntlm.pm is present under LWP/Authen folder. Please advice

Replies are listed 'Best First'.
Re^5: WWW::Mechanize Problem
by Corion (Patriarch) on Apr 07, 2009 at 16:28 UTC
      Is there any way of making my code work.

      I have given the code below
      #!C:/Perl/bin/perl.exe use LWP::Simple; use LWP::UserAgent; use HTTP::Request; use HTTP::Response; use HTML::LinkExtor; use LWP::Authen::Ntlm; my $URL= "http://eonet.level3.com/"; $browser = LWP::UserAgent->new(); $browser->timeout(10); my $request = HTTP::Request->new(GET => $URL); my $response = $browser->request($request); if ($response->is_error()) {printf "%s\n", $response->status_line;} $contents = $response->content(); #print $contents; print $response->status_line(), "\n"; print $response->headers()->as_string();
      Please help!!!