Sharepoint 2013本地REST API返回411错误 [英] Sharepoint 2013 on-prem REST API returning 411 error

查看:61
本文介绍了Sharepoint 2013本地REST API返回411错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Sharepoint 2013 REST API更新列表(POST),但是我得到了一个 411错误-请求的内容长度必须为

I am trying to use the Sharepoint 2013 REST API to update a List (POST) but I am getting a 411 Error - The request must have a content length. 

我正在发送Content-Length = 0的标头,并且我也尝试过Content-Length = 1024,但是仍然出现错误.

I am sending a Header with Content-Length = 0 and I have also tried Content-Length = 1024, but I am still getting the error.

我使用Wireshark跟踪了请求,是的,它确实包含内容长度信息.

I traced the request using Wireshark, and yes it does contain the content length information.

对不起,自从我使用Advanced REST Client进行测试以来,没有任何代码,但是我也尝试了Postman来获得相同的结果.

Sorry, no code since I am using Advanced REST Client to test but I have also tried Postman with the same result.

提前感谢您的帮助.

推荐答案

我通常使用Fiddler进行REST api测试,因为它将自动设置Content-Length,您可以检查以下示例.


最好的问候,

Lee


这篇关于Sharepoint 2013本地REST API返回411错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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