Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- math
- java
- JDK
- 전자정부프레임워크
- break문
- 올리버쌤
- 이벤트
- 한큐에자바
- 자바
- web
- 취업반
- egov
- hanq
- 유튜브 올리버쌤
- 유뷰브 올리버쌤
- 이벤트핸들러
- es6
- continue문
- 자바스크립트
- Youtube 올리버쌤
- position
- Event
- javascript
- 삼항연산자
- 한큐
- for문
- spread operator
- Step2
- array
- 이클립스
Archives
- Today
- Total
호다닥
What is HTTP and how it works 본문
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
- 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
- The HTTP can deliver any sort of data, as long as the two computers are able to read it.
- 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