The Guide
Explain It Like I'm 5NetworkingProtocols

HTTP/S

Hyper Text Transfer Protocol And How To Secure It

What's HTTP?

Hyper-text transfer protocol or HTTP for short is a protocol for transferring web data (anything you do with your browser and a lot of applications are based on HTTP)

How Does It Work?

A typical HTTP packet (request / response) looks like this:

GET /users HTTP/1.1
Host: example.com
\r\n\r\n

So what does all of this mean?

  • GET -> the method we want to use (there are a few methods available)
  • /users -> The path we want to make the request to (You can also see it in your URL -> where you're typing the website you want to go to)
  • HTTP/1.1 -> The HTTP version to use in the interaction

Everything until the "\r\n\r\n" (which means 2 new lines) is called a header and everything after the 2 lines is part of the request body

On this page