Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I upload a document to SharePoint with Perl?
    text
    copied!<p>I have a Perl app that runs some perforce operations, in the end I would like it to upload the results to SharePoint website. </p> <ul> <li>What is the simplest Perl script that can accomplish a task of adding a document to SharePoint? </li> </ul> <p>The script would need to run on Solaris and use as few as possible external libraries as possible (definitely pure classic Perl) getting anything additional installed on these unix boxes is a pain and would have to be done by remote team.</p> <p>If this can uploading document can easily be done with wget, that would be of interest too. Anyways, I am looking for 1 or a couple liner that's easy to understand.</p> <p>UPDATES based on comments:</p> <ul> <li>Perl Mechanize sounded like a good idea, but for some reason I am not able to authenticate, Error GETing <code>http://sharepoint Unauthorized ....</code> </li> </ul> <p>I had this:</p> <pre><code>my $m = WWW::Mechanize-&gt;new(); $m-&gt;credentials($user =&gt; $pass); $m-&gt;get($url); </code></pre> <p>But mechanize won't authenticate against sharepoint for some reason.</p> <ul> <li>Does anybody have a link or a sample on how to use sharepoint webdav from unix via perl? </li> </ul> <p>I installed and tried to open <a href="http://www.webdav.org/perldav" rel="nofollow noreferrer">my typical sharepoint site</a> via "dave" webdav browser, but I get <code>** Unauthorized. **</code> error. </p> <ul> <li>How to solve it with the webdav approach with perl on unix? </li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload