Codecademy Forums

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

but pls what’s an API or should I say what do they do, where do they exist in this whole web development

5 Likes