How can I upload a document to SharePoint with Perl? -


I have a Pearl app that runs some preview operations, in the end I would like to upload the result to the SharePoint website

  • What is a simple Perl script that can complete the task of adding a document to SharePoint?

The script must be run on Solaris and should be used as as possible external libraries (of course, pure classic Pearl) can be installed on some additional unix boxes. It is a pain and can be done by the remote team.

If this can be uploaded the document can easily be done with wget, it will also be of interest, anyway, I am looking for 1 or a two liner which is easy to understand.

Updates on the basis of comments:

  • Pearl MacNeak looked like a good idea, but for some reason I am not able to authenticate, error Http: // sharepoint unauthorized ....

    I had this:

      my $ m = WWW :: mechanic-> new (); $ M- & gt; Credential ($ user = & gt; $ pass); $ M- & gt; Mill ($ url);  

    But mechanism will not be certified against sharepages for any reason.

    • Do anyone have a link or a sample on which SharePoint WebDiv can be used through Unix via Pearl?

    I tried to open "Dave" via webpage browser, but I received ** unauthorized ** error

      < Li> How to solve it with webdive approach with Perl over Unix?

      It looks like a job. It has excellent support in dealing with the form.


Comments