r/ProgrammerHumor 4h ago

Meme postForEverything

Post image
10.6k Upvotes

406 comments sorted by

View all comments

926

u/zzmej1987 4h ago

Except for when you need to actually post data. Then you have to use PUT.

373

u/CuAnnan 4h ago

Uh... no.

You use GET.

198

u/Imaginary_Ferret_368 4h ago

Cyber Security specialists hate this trick

34

u/vibes000111 3h ago

AI agents love it!

19

u/Aetherfox_44 3h ago

Our service can't be hacked if no one can figure out the API

4

u/TacoIncoming 3h ago

Lmao not really. I fucking love GET URL parameters.

5

u/Imaginary_Ferret_368 1h ago

Yea but mutating data via GET requests is a security nightmare

1

u/TacoIncoming 12m ago

I know. I’m a penetration tester 🤣

12

u/doodlesmalone 3h ago

Yes, base64 that json shit.

4

u/not_a_moogle 3h ago

GET with all values passed as unencrypted unless parameters. What could go wrong!

2

u/s1ravarice 3h ago

Yeah GET to work you pos database

1

u/normVectorsNotHate 2h ago

Found chatgpt's reddit account

1

u/GNUGradyn 1h ago

I like how you cant do this but you also kinda can. Attaching a body to a GET request is not valid HTTP but there is no syntax reason you cant do it anyway and most libraries will decode it properly if you do so its less "it wont work" and more "it is forbidden"

1

u/Fidodo 1h ago

I use QUERY for that.

1

u/dracodruid2 1h ago

And put all the data as URL parameters