Snipps by Patrik

HTTP PUT without a body

It is possible to use PUT without a body like

PUT /example HTTP/1.0
Content-Type: text/plain
Content-Length: 0

A sample would be the github starring API, which uses PUT with an empty body to turn on a star and DELETE to turn off a star.

Comments