Screenshot 2022-08-26 at 2.14.03 AM.png

Send request and get response from the Server.

HTTP messages

Screenshot 2022-08-26 at 2.15.59 AM.png

The general structure for both messges are similar.

Request messages:

In start line there will be a method, then the url as well as the http version. We will be most interested in 2 things:

  1. The method
  2. The url

Methods

Screenshot 2022-08-26 at 2.21.08 AM.png

Note: GET is the default request that the browser performs.

Headers:

Headers are optional. This is meta information about our request. Headers, are key value pairs. This is going to be information about our message.