HTTP CRASH COURSE

VISHNU VARDHAN
2 min readSep 13, 2021

--

Hey ,hi guys here vishnu vardhan . Myself im a cybersecurity researcher . Here we discuss about the how web works .

  • Its a basic topic about how web works for the begginers .Lets get into the topic <3

What is HTTP?

  • ITs stands for hyper text transfer protocol like communication between web servers and the clients .
  • HTTP REQUESTS/RESPONSES
  • Its a protocol of the web to communicate with each other (client and the web)

HTTP IS STATELESS :

  • Every request is completely independent , similar to the transactions .
  • Programming , Local storage, cookies , sessions , are used to create enhanced user expiriences .

What is HTTPS?

  • Its stands for hyper text transfer protocol secure .
  • In this data sent in encrypted by ssl/tls

HTTP METHODS :

GET METHOD :

  • Its used to retrive the data from the server

POST METHOD :

  • To submit the data to the server (like on sign up and feedback pages )

PUT METHOD :

  • Its used to update the data which is already on the server

DELETE METHOD :

  • Deletes the data from the server

OPTIONS METHOD :

  • Its used to check which methods are available
  1. GET/boom/pc/windows/HTTP/1.1

Here

  • Get ->method
  • PC -> path
  • HTTP/1.1 ->Protocol

STATUS CODES :

1XX : Informational

-> Request received /proccessing

2xx : success

  • >Successfully received , understad and accepted

3xx : Redirects

  • >Further action must be taken or redirects

4xx : Client Error

  • > Request does not have what it needs

5xx : Server Error

  • > server failed to fulfill the valid request

200 -> ok

201-> ok created

301-> moved to new url

304->not modified (cache version)

400-> bad request

401-> un authorized

404-> not found

500-> Internal server error

Thanks for reading ❤

--

--