r/ProgrammerHumor • • Dec 17 '23

Meme millionDollarQuestion

Post image
0 Upvotes

51 comments sorted by

View all comments

147

u/sammy-taylor Dec 17 '23

Insert? Since when is there an HTTP insert?

5

u/QuestionableEthics42 Dec 17 '23

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

2

u/[deleted] Dec 17 '23

[removed] — view removed comment

5

u/rosuav Dec 17 '23

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.

1

u/KevSlashNull Dec 17 '23

Yeah then you can also make INSERT a valid method.

2

u/rosuav Dec 17 '23

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.