Why is it called a request?

Question

In this lesson, we are introduced to HTTP requests. Why are they called requests?

Answer

They are called “requests” because they are essentially an inquiry, or a “request”, from a client to a server to complete some task.

For example, a “request” might be “Please give me the HTML and CSS for this newspaper article”. This would be known as a “GET” request because you are inquiring to receive information. Another example of a “request” might be “Please update my address information to a new value”. This can be in the form of a “PUT” request, which can update existing information in the server. The server then “responds” to the requests and performs the necessary actions.

8 Likes

2 posts were split to a new topic: What is an API?