Skip to content

Instantly share code, notes, and snippets.

@manojpanta
Created March 11, 2019 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manojpanta/ff2f8930689f0f2578afd1a42ae50b02 to your computer and use it in GitHub Desktop.
Save manojpanta/ff2f8930689f0f2578afd1a42ae50b02 to your computer and use it in GitHub Desktop.
A Request line, containing three piece of information:
the HTTP method (also called a “verb”) for sending or retrieving information
the URI “path” of the resource where we’re sending or retrieving information
the version of the HTTP protocol our “client” software is using
Headers, which is a key/value pair, which contain supplimental information about our request
An optional body; we only send data to the server in the body when we are creating or modifying something
response.
a Status line, containing three pieces of information:
The version of the HTTP protocol that this response is using
a 3-digit numeric “status code”
a user-friendly string description of what the “status code” means
Headers, also sent as key/value pairs similar to the HTTP request
An optional body; almost all responses will contain additional data in the body. In mod 2, our “body” payload will almost always be HTML.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment