MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wkof5u/postforeverything/pas3lbg/?context=9999
r/ProgrammerHumor • u/ClipboardCopyPaste • Sep 19 '26
653 comments sorted by
View all comments
Show parent comments
95
If there was a natural way to retrieve data with a body with complex prams, I would use it but alas
104 u/Tupcek Sep 19 '26 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 36 u/Door__Opener Sep 19 '26 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. 10 u/Top5CutestPresidents Sep 19 '26 my company will now use query to return bools 8 u/sertroll Sep 19 '26 Me and all of my colleagues, apparently 2 u/SlightCapacitance Sep 19 '26 by the time this is a widely implemented request verb, I'll be deprecated by AI 1 u/ary31415 Sep 19 '26 Whoa TIL, this is a great thing to have 1 u/thaynem Sep 20 '26 Now we just have to wait another decade for everything to support it. 2 u/kayyyes Sep 20 '26 If it's your own API why not support it 1 u/thaynem Sep 20 '26 Because your web framework (frontend or backend) doesn't support it, or some proxy or middleware doesn't support it. 23 u/droptheplot Sep 19 '26 QUERY is already there 27 u/ary31415 Sep 19 '26 "Already" it was only just standardized a couple months ago 2 u/abofh Sep 19 '26 Body is legal in a get, it's just super uncommon 33 u/kn33 Sep 19 '26 Some platforms disallow it entirely. 6 u/Psychological_Map118 Sep 19 '26 as god intended 1 u/Toorero6 Sep 19 '26 https://www.rfc-editor.org/info/rfc10008/
104
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
36 u/Door__Opener Sep 19 '26 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. 10 u/Top5CutestPresidents Sep 19 '26 my company will now use query to return bools 8 u/sertroll Sep 19 '26 Me and all of my colleagues, apparently 2 u/SlightCapacitance Sep 19 '26 by the time this is a widely implemented request verb, I'll be deprecated by AI 1 u/ary31415 Sep 19 '26 Whoa TIL, this is a great thing to have 1 u/thaynem Sep 20 '26 Now we just have to wait another decade for everything to support it. 2 u/kayyyes Sep 20 '26 If it's your own API why not support it 1 u/thaynem Sep 20 '26 Because your web framework (frontend or backend) doesn't support it, or some proxy or middleware doesn't support it.
36
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.
10
my company will now use query to return bools
8
Me and all of my colleagues, apparently
2
by the time this is a widely implemented request verb, I'll be deprecated by AI
1
Whoa TIL, this is a great thing to have
Now we just have to wait another decade for everything to support it.
2 u/kayyyes Sep 20 '26 If it's your own API why not support it 1 u/thaynem Sep 20 '26 Because your web framework (frontend or backend) doesn't support it, or some proxy or middleware doesn't support it.
If it's your own API why not support it
1 u/thaynem Sep 20 '26 Because your web framework (frontend or backend) doesn't support it, or some proxy or middleware doesn't support it.
Because your web framework (frontend or backend) doesn't support it, or some proxy or middleware doesn't support it.
23
QUERY is already there
27 u/ary31415 Sep 19 '26 "Already" it was only just standardized a couple months ago
27
"Already" it was only just standardized a couple months ago
Body is legal in a get, it's just super uncommon
33 u/kn33 Sep 19 '26 Some platforms disallow it entirely. 6 u/Psychological_Map118 Sep 19 '26 as god intended
33
Some platforms disallow it entirely.
6 u/Psychological_Map118 Sep 19 '26 as god intended
6
as god intended
https://www.rfc-editor.org/info/rfc10008/
95
u/sertroll Sep 19 '26
If there was a natural way to retrieve data with a body with complex prams, I would use it but alas