News for hackers. Stuff that matters.
Re:Difference between PUT vs. POST from a system administrat... by amacalac on Saturday October 14, 2023 @12:40AM (#37878129)
POST is typically used for creating new entities - the server can determine if the entity should be created - the client might ask for an entity to be created several times

PUT is typically used for updating existing entities - the server can determine if the entity exists before updating it - imagine where a record might be tried to update twice. you would expect the same output even if the input was used twice (think poor network connection without an ACK from the server back to the client, so the client retries)

Re:Difference between PUT vs. POST from a system administrat... by srinivasandoor on Saturday October 14, 2023 @12:55AM (#37878185)
about updating twice, what if client really wanted to update twice?

I did POST with cURL in linux to send data to server, what'd have happened if I used PUT. I did it for sending FCM/GCM to android.