Is an HTTP PUT request required to include a body?

后端 未结 5 452
失恋的感觉
失恋的感觉 2020-12-07 20:03

I\'m having trouble finding a definite specification of this in the standard. I have an HTTP client that\'s not including a Content-Length: 0 header when doing

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 20:32

    Not answering the question, but asserting how jaxrs allows me to frequent use of bodyless PUTs:

    Example of bodyless put: Give user an additional permission.

    PUT /admin/users/{username}/permission/{permission}

提交回复
热议问题