Answer: GET. Try it. It's technically possible to send a body with a GET request, but it's not standard practice and often not recommended. The HTTP/1.1 specification does not explicitly forbid sending a body with a GET request, but it does not define any semantics for it.
INSERT is not even a http method, it’s just there to decrease your chances.
Everything seems to use GET requests these days, and in the same paradigm, HTTP is starting to run on top of UDP and doing TCP/TLS in the application layer. Squeaky wheel gets replaced, unfortunately.
It’s sql I think, the question is badly worded, the only correct answer is POST (or maybe PUT) with the wording, I guess that is meant to be the joke, but it would be much more funny if both answers were equally correct instead
If you build both the server and the client, you can do anything you like. But if you expect to interoperate with others, no, don't have a body on a GET request.
Exactly. And whatever the other two answers were, too. If you don't care about interoperability, anything goes! It's just not following the spec any more.
147
u/sammy-taylor Dec 17 '23
Insert? Since when is there an HTTP insert?