Reputation: 349
In an HTTP GET request, all data is found in the URL.
In an HTTP POST request, all data is found within the HTTP body.
Where is the data in a DELETE or PUT request?
Upvotes: 0
Views: 134
Reputation: 131187
From the RFC 7231:
[...] A payload within a
DELETE
request message has no defined semantics; sending a payload body on aDELETE
request might cause some existing implementations to reject the request.
The
PUT
method requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload. [...]
For both methods, you can send data in the URL using path / matrix and query parameters.
Upvotes: 1
Reputation:
Put simply, as far as passing data with your call goes:
Upvotes: 1