Python请求模块抛出403错误+ SharePoint Online

时间:2017-07-06 09:22:55

标签: python-3.x cookies python-requests sharepoint-online digest-authentication

我目前正在编写一个脚本,可以在线从sharepoint获取信息。要在sharepoint环境之外执行此操作。我需要获得令牌和Cookies(FedAuth,rtFa)。 Sames cookies我可以使用python中的请求。

现在,如果我在脚本中的标头中传递相同的cookie,同时从SP Online获取列表数据。它会引发403错误。但是如果我在Postman中使用相同的cookie来获取列表数据。它成功获取信息。

谁能告诉我我做错了什么?

编辑:找到答案,here is the link for the same

0 个答案:

没有答案