호다닥

What is HTTP and how it works 본문

카테고리 없음

What is HTTP and how it works

3jun 2021. 7. 22. 21:48

What is Http?

Hyper Transfer Protocol

  • Http is application layer protocol that allows web-based applications to communicate and exchange data.
  • TCP/IP based Protocol
  • Http used to deliver contents for example images, videos, audios, documents

3 Important things

  1. HTTP is connetionless   - after making the request, the client disconnect from the server, then when response is ready the server re-establish the connection again and deliver the response
  2. The HTTP can deliver any sort of data, as long as the two computers are able to read it.
  3. The HTTP is a stateless   - the client and server know about each other just during the current request, if it closes, and the two computers want to connect again, they need to provide information to each other anew, and the connection is handled as the very first one.

Why the HTTP?

 The http was designed mainly to fetch html documents  and sends it to the client.

 It was designed in a exquisite way.

 It was being continually evoved and features were being added to it.

 It became the most convenient way to quickly and reliably move data on the web.

 

HTTP Message

HTTP message contains plain text based information. somtimes the body contains binary data.

The Request Http message and Response Http message

The method is a command that tells the server what to do.     E.g GET / POST

URI is a set of readable characters and a way to locate the resource.

The status code tells the client if the request succeeded or failed.     E.g : 200: OK, 404: file not found

 

To sum up

  • The HTTP is a TCP/IP based application layer protocol that allows web-based applications to communicate and exchange data.
  • The computers that communicate via the HTTP must speak the http protocol.
  • The http is stateless, connectionless, and can deliver any data.
  • We use the http protocol because it its a convenient way to quickly and reliably move data on the web.
  • The request response cycle works on the web via http messages.
  • A http message contains three sections, the start line, the headers, and the body

This content was made by https://www.youtube.com/watch?v=eesqK59rhGA 

 

 

Comments