Is an entity body allowed for an HTTP DELETE request?

后端 未结 15 1608
长发绾君心
长发绾君心 2020-11-21 13:32

When issuing an HTTP DELETE request, the request URI should completely identify the resource to delete. However, is it allowable to add extra meta-data as part of the entity

15条回答
  •  我寻月下人不归
    2020-11-21 14:07

    This is not defined.

    A payload within a DELETE request message has no defined semantics; sending a payload body on a DELETE request might cause some existing implementations to reject the request.
    https://tools.ietf.org/html/rfc7231#page-29

提交回复
热议问题