Anatomy of a Request, Codecademy, How to use APIs with JavaScript

Lesson Summary

In this lesson we look over the anatomy of making a request. There are 3 things that make up an http request. A request line, a header, and a body. A request lines tells the server what type of request is being made(POST, GET, etc). A header which sends additional information to the server such as who is making the request. The body can be empty but it can contain data is one is POSTing or PUTing information.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required