HTTP Request Simply Explained
February 18, 2021
Everybody using internet almost everyday for every purpose for getting, sending, updating, or deleting information. All of that actions used in HTTP, and here they are:
GET
GET
Ā method is used for getting information, such as your friend number, all products that ready stock, the shoes that are in black color, etc. This method usually known as Read/Retrieve in CRUD.
POST
POST
Ā method is usually used for sending information. For example saving your new account information, posting image to instagram, tweeting, etc.Ā POST
Ā is represent Create in CRUD.
PUT/PATCH
PUT
Ā andĀ PATCH
Ā are for Updating the informations that are already stored before. For example when you change your username, you photo, editing your caption, etc. The difference between them is,Ā PUT
Ā updates the entire resource whileĀ PATCH
Ā applies a partial update to the resource.
DELETE
You guest it,Ā DELETE
Ā just like its name is for delete the information, apart from what technique was use for deleting a resource whether its hard delete or soft delete.
Thatās all, hope you will understand more about how internet protocols worked. Thanks for reading!