Requests
Whenever the client (web browser or mobile app) fetches a file or sends data (a page, a picture, a username and password, etc) to or from a web server, it does so using HTTP (Hypertext Transfer Protocol).
Example Requests
Most modern applications make multiple types of requests. Here are some examples of requests made using Facebook:
A user writes a post and presses Post.
A user goes to Instant Messenger to access a friends message.
A user goes into their profile and updates their favorite bands.
A user deletes their profile.
HTTP Verbs
Each one of these requests is done using HTTP. In coding terminology, these are known as HTTP verbs. They are used in most modern programming languages, including Java, C#, Python, etc. There are over 20 HTTP verbs, but there are only 4 that are most commonly used. These verbs are as follows:
POST
GET
PUT
DELETE
Let's break each one down a little bit.
POST
Any time a user is creating new information, that is usually a POST request. So, in the above example, when they make a write a new post and hit post.
GET
Any time a user is retrieving existing information, that is usually a GET request. So, in the above example, when a user goes to messenger and can see all their friends messages.
PUT
Any time a user is overwriting existing information or updating information, that is usually a PUT request. So, in the above example, when a user updates their favorite brands they are doing a PUT request.
DELETE
Any time a user is deleting existing information, that is usually a DELETE request. So, in the above example, when a user would delete their profile, they would be doing a DELETE request.
Last updated