The Basics of HTTP Request Methods
Hello coders! Today’s tutorial is a simple one relating to back-end programming. If you haven’t read it, please refer to my Beginner’s Intro to Back-end Programming for some essential background info.
Okay, so let’s dive into the topic~
Types of HTTP Requests
So if you recall, in my Beginner’s Intro to Back-end Programming, I wrote that a HTTP Request is when a browser makes a request to the server to ask for some information. This is known as a ‘GET’ request.
But sometimes, the request may not be about retrieving info from the server, but also updating information to the server. This is called a ‘PUT’ request. Hence, they are called HTTP Request Methods to specify what type of action the browser wants to do with the server.
A HTTP Request method specifies the desired action the browser wants to do with the server.
So, there’s a GET and PUT. What else?
Here’s a simple and concise list of the common HTTP request methods.
GET: Retrieve and read data from server.
PUT: Update and replace data on the server.