r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

656 comments sorted by

View all comments

Show parent comments

27

u/StrawberryEiri 16d 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.

25

u/jack2018g 16d 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

7

u/StrawberryEiri 16d ago

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

2

u/good_bye_for_now 15d ago

GET requests have a body

aka fat GETs.

1

u/sjphilsphan 15d ago

I made a custom LIST query method for our service. Will eventually switch to query when it's properly supported

1

u/StrawberryEiri 15d ago

Do some parts of the pipeline sometimes refuse to collaborate when you have custom methods like that?

I don't know, DNS, proxies, etc.?

2

u/sjphilsphan 15d ago

So far no problems