GET Method
In this lesson, we will understand how to use the HTTP GET method.
We'll cover the following...
We'll cover the following...
What is the GET method?
The GET method is used by the client to fetch the data from the server.
Let’s make a GET request for the given URL.
curl -X GET https://reqres.in/api/users/2
- The command above will show the response data from the server in the form of a
JSON
Note: By default,
curlrequests the URL using theGETmethod. To request the specific URL using ...