Sharepoint 2013本地REST API返回411错误 [英] Sharepoint 2013 on-prem REST API returning 411 error
问题描述
我正在尝试使用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屋!