内容数据的补丁请求 [英] Patch Request With Content Data

查看:90
本文介绍了内容数据的补丁请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试触发SendAsync请求时遇到了错误的请求。

I am facing bad request in response when trying to fire SendAsync request.

任何人都可以共享任何有关如何发送包含数据内容的PATCH请求的示例。

Can anyone share any example of how to send PATCH request with data content in it.

推荐答案

PATCH是一个很少支持的动词。为了使其工作,远程服务器必须支持PATCH请求(大多数不支持)。如果是,则PATCH请求通常与POST请求相同,但您只发送已更改的数据。但是,
远程服务器必须明确支持PATCH动词。请参阅您正在呼叫的API的文档,以查看它们是否允许PATCH。如果他们这样做,他们通常会指出您必须为请求发送的最少信息。

PATCH is a rarely supported verb. In order for it to work the remote server has to support a PATCH request (most do not). If it does then a PATCH request is generally identical to a POST request but you only send the data that has changed. Again though, the remote server must explicitly support the PATCH verb. Refer to the documentation for the API you're calling to see if they allow PATCH. If they do then they will often indicate the minimal information you have to send for the request.

根据您的错误,我会说他们没有。但只有API开发人员可以帮助处理错误的数据请求。

Based upon your error I'd say they don't. But only the API devs can help with the bad data request.


这篇关于内容数据的补丁请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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