I have a Perl app that runs some perforce operations, in the end I would like it to upload the results to SharePoint website.
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.
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.
UPDATES based on comments:
http://sharepoint Unauthorized ....
I had this:
my $m = WWW::Mechanize->new();
$m->credentials($user => $pass);
$m->get($url);
But mechanize won't authenticate against sharepoint for some reason.
I installed and tried to open my typical sharepoint site via "dave" webdav browser, but I get ** Unauthorized. **
error.
This sounds like a job for WWW::Mechanize. It has excellent support for dealing with forms.
Just found an easy way on windows from perlmonks forum:
http://www.perlmonks.org/?node_id=527182
under Windows, you can access a sharepoint site via a UNC name. The URL:
sharepoint.domain.dom/sites/Roboticus/Test
is accessible via:
\\sharepoint.domain.com\sites\Roboticus\Test
just adding as answer to myself, now I got to figure out how to script this from Perl and whether there is way to do the same from script running on unix.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With