如何使用 curl 自动上传和检入文件到共享点? [英] How to auto upload and check in the files to sharepoint using curl?

查看:23
本文介绍了如何使用 curl 自动上传和检入文件到共享点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用我的 sharepoint 登录凭据将文件从 linux 上传到 sharepoint.我使用 cURL 实用程序来实现这一点.上传成功.

I am trying to upload a file from linux to sharepoint with my sharepoint login credentials. I use the cURL utility to achieve this. The upload is successful.

使用的命令是:curl --ntlm --user username:password --upload-file myfile.txt -k https://sharepointserver.com/sites/mysite/myfile.txt-k 选项用于克服非安全共享点站点的证书错误.

The command used is : curl --ntlm --user username:password --upload-file myfile.txt -k https://sharepointserver.com/sites/mysite/myfile.txt -k option is used to overcome the certificate errors for the non-secure sharepoint site.

但是,这个上传的文件显示在我登录时共享点的签出"视图(绿色箭头)中.因此,对于其他登录的用户,此文件不存在.

However, this uploaded file is showing up in "checked out" view(green arrow) in sharepoint from my login. As a result, this file is non-existent for users from other logins.

我的登录名具有 sharepoint 的写访问权限.

My login has the write access previlege to sharepoint.

关于如何签入"此文件以使用 cURL 共享点以便任何人都可以通过登录查看该文件的任何想法?

Any ideas on how to "check in" this file to sharepoint with cURL so that the file can be viewed from anyone's login ?

推荐答案

我关于 使用 cURL 执行多个请求 有一个使用 bash 和 cURL 的非常全面的示例,尽管它必须为每个请求重新输入密码.

My question about Performing multiple requests using cURL has a pretty comprehensive example using bash and cURL, although it suffers from having to reenter the password for each request.

这篇关于如何使用 curl 自动上传和检入文件到共享点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆