Ajax-loader-large-white
How to use APIs with jQuery
Anatomy of a Request

An HTTP request is made up of three parts:

  • The request line, which tells the server what kind of request is being sent (GET, POST, etc.) and what resource (for example, a user or product) it's looking for;
  • The header, which sends the server additional information (such as which client is making the request);
  • The body, which can be empty (as in a GET request) or contain data (if you're POSTing or PUTting information, that information is contained here).
Instructions

Check out the text in the editor. This is what a typical request looks like! Note the POST information in the request line, the header information below it, and the data to be POSTed at the bottom.

index.html
project
View Preview