in reply to Perl with Sharepoint and two factor authentication

In my experience, REST APIs make it easier to communicate. If you are allowed to install modules, then a quick look at CPAN reveals http://search.cpan.org/~mcrawfor/REST-Client-88/lib/REST/Client.pm as a module for interacting with a REST endpoint. Given the fact that who ever made the script used Mechanize, more than likely you'll be making a POST or a GET call. Ask the share point admins to give you a sample request with headers. You'll more than likely have to get acquainted with REST but it's worth the while.
  • Comment on Re: Perl with Sharepoint and two factor authentication

Replies are listed 'Best First'.
Re^2: Perl with Sharepoint and two factor authentication
by hippo (Archbishop) on Feb 02, 2018 at 09:17 UTC
    a quick look at CPAN reveals http://search.cpan.org/~mcrawfor/REST-Client-88/lib/REST/Client.pm

    I'll bite. Why have you picked that old version of the module from 9 years ago? The most recent release as of today is version 273 from August 2015. Far better to get the latest version with all the fixes, no? Or is there something particular to version 88 that you think perlas requires?

    Like you, I am happy to recommend Rest::Client but I would use the latest version.

      Agree with hippo, I just recently (past 3 months) used REST::Client (version 273) and it worked fine. Get the latest.

      I apologize. Please use the latest. I just happened to click on the first link that appeared. :)
Re^2: Perl with Sharepoint and two factor authentication
by marto (Cardinal) on Feb 02, 2018 at 09:33 UTC