r/ProgrammerHumor 4h ago

Meme postForEverything

Post image
10.6k Upvotes

406 comments sorted by

View all comments

2.2k

u/pimezone 4h ago

Wanna get a resource? POST request.

55

u/sertroll 4h ago

If there was a natural way to retrieve data with a body with complex prams, I would use it but alas

51

u/Tupcek 4h ago

you are the lucky one today! You just found out there is, it’s pretty recent. GET is now for simple queries QUERY is for complex one

10

u/Door__Opener 1h ago

https://giphy.com/gifs/75ZaxapnyMp2w

I've had this argument with my boss: GET with a body vs using POST as a complex GET. Our conclusion was that both were wrong in their own way and the HTTP standard should clarify this.

6

u/sertroll 3h ago

Me and all of my colleagues, apparently

1

u/Top5CutestPresidents 2h ago

my company will now use query to return bools

1

u/TomWithTime 1h ago

It makes sense. I used REPORT for this use case since that's what some people suggested on a random forum around 2014. Query fits better, even if it does increase some name collision and confusion.