0
有可能在this question提到籤使用curl用下面的命令文件到SharePoint文檔庫:如何使用curl簽出Sharepoint文檔庫中的文件?
curl --ntlm --user username:password --upload-file file.txt https://mysharepointserver.com/sites/mysite/myfile.txt -k
但如何從文檔庫第一次檢出文件(使用curl)?
我想一個方法,通過傳遞的SOAPAction checkoutfile頭和數據如下,但它沒有任何效果eventhough服務器返回的響應:「200 OK」
curl --ntlm --user username:password -d @soapdata.xml -H "SOAPAction: http://schemas.microsoft.com/sharepoint/soap/CheckOutFile" -H "Content-Type: text/xml; charset=utf-8" https://mysharepointserver.com/sites/mysite/myfile.txt -k
soapdata.xml包含需要籤出SOAP數據如WSDL所述。在上面的命令中是否有錯誤,或者是否有一種簡單的方法可以像CURL一樣使用CURL?