I\'m writing a server app and wanted the client to use data in body to pararmeterize my GET method, like this:
# http -v GET http://localhost:3000/url text=123 f
I would take this as the answer:
For HTTP, it's not prohibited, but you shouldn't use it as the server may (and SHOULD) ignore the body of GET
request.
Reference: HTTP GET with request body
For XHR, body of GET
and HEAD
will be ignored (hinted by @jacob-koshy).
Reference: https://xhr.spec.whatwg.org/#the-send()-method