http://qs1969.pair.com?node_id=829554

karayan has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I am trying to download a sharepoint calendar using LWP.
use LWP::Simple; use LWP::UserAgent; use Data::Dumper; my $URL = 'https://calendar.host.com'; my $ua = LWP::UserAgent->new( ); $ua->credentials('http://host.com', '', 'user' => 'password'); my $req = new HTTP::Request GET => $URL; my $res = $ua->request($req); print Dumper($res);
I am getting error NTLM is not supported. Web browser is sending a WWW-Authenticate header field that the Web server is not configured to accept. I think the server is using LDAP authentication. Is it possible for LWP to authenticate LDAP. Please advise. Thanks..

Replies are listed 'Best First'.
Re: Access sharepoint calendar using LWP
by Anonymous Monk on Mar 19, 2010 at 07:37 UTC
    I think the server is using LDAP authentication. Is it possible for LWP to authenticate LDAP. Please advise. Thanks..

    First you thought it was NTLM, why do you think it is LDAP? I would ask the admin and find out definitively (in addition to learning about sharepoint on MSDN).

    http://search.cpan.org/~gbarr/perl-ldap-0.40/ t/58lwp.t

Re: Access sharepoint calendar using LWP
by Sinistral (Monsignor) on Mar 19, 2010 at 13:18 UTC
Re: Access sharepoint calendar using LWP
by Anonymous Monk on Oct 18, 2010 at 14:56 UTC