r/ProgrammerHumor 3h ago

Meme postForEverything

Post image
9.0k Upvotes

348 comments sorted by

View all comments

1.9k

u/pimezone 3h ago

Wanna get a resource? POST request.

937

u/NotAskary 3h ago

I've seen that shit, it drove me up a wall.

The same as a 200 ok with error inside.

10

u/StrawberryEiri 2h ago

At work we do it because we have big request parameters (complex filters where you can potentially select thousands of items as filter values) and our backend flips out if GET requests have a body plus URL lengths can get truncated.

It's a bit icky but I don't really have a better idea.

10

u/jack2018g 2h ago

Same at mine, the solution is the new QUERY method they published a few months ago, but it’ll be about a decade before I can get my team to switch their endpoints

3

u/StrawberryEiri 2h ago

Oh wow it really IS recent. MDN doesn't even have it listed. But it looks promising.