使用C ++中的Wininet库进行Sharepoint FileUpload [英] Sharepoint FileUpload using wininet libraries from c++
问题描述
嗨
有没有一种方法可以使用_api/contenxtinfo通过REST API在wininet库中获取cookie和消化值.
Is there a way I can use _api/contenxtinfo to get the cookie and digestive value in wininet library with REST API.
我可以向SharePoint验证请求,并且需要将文件上传到sharepoint网站.
I can authenticate the request to SharePoint and I would need to upload a file to sharepoint site.
有人在C ++中尝试过任何指针..
Have anyone tried in C++, any pointers ..
谢谢
推荐答案
这里是一个博客供您参考,它是使用C#代码实现的,您可以自己将其转换为C ++代码.
Here is a blog for your reference, it is use C# code to achieve it, you can convert it to C++ code by yourself.
使用C#将具有REST,CSOM和RPC的大型文档上传到SharePoint Online
Uploading Large Documents into SharePoint Online with REST,CSOM, and RPC using C#
http://sharepointfieldnotes.blogspot.sg/2014/07/uploading-large -documents-into.html
另一篇文章供您参考:
C ++-为C ++开发人员带来RESTful服务
https://msdn.microsoft.com/en-us/magazine/dn342869.aspx
最好的问候,
这篇关于使用C ++中的Wininet库进行Sharepoint FileUpload的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!