HTTP Parameters

In this lesson, we will go through the various types of HTTP parameters.

What are HTTP parameters?

When a client uses the HTTP GET method to request a certain resource from the web server, the client may also send certain parameters through the requested URL in the form of a query parameter, path parameter, or a form parameter.

Query parameter

The query parameter is a name-value pair and is the part of a requested GET URL. Have a look at the example below:

For the GET call, the client sends a query parameter in the form of a name-value pair ( page=2 ) and requests the web server for all the users on the ‘2’ listing page.

curl -X GET https://reqres.in/api/users?page=2

Get hands-on with 1400+ tech skills courses.