HTTP/HTTPS
by GerberaaHTTP(Hyper Text Transfer Protocol)란 서버와 클라이언트의 데이터 교환을 요청(Request)과 응답(Response) 형식으로 정의한 프로토콜.
- HTTP의 기본 메커니즘은 클라이언트가 서버에게 요청하면, 서버가 응답.
- 웹 서버는 HTTP 서버를 HTTP 서비스 포트에 대기시킴.
- 일반적으로 TCP/80 또는 TCP/8080.
- 클라이언트가 서비스 포트에 HTTP 요청을 전송하면, 이를 해석해 적절한 응답을 반환함.
Request
GET /index.html HTTP/1.1
Host: tistory.com
Connection: keep-alive
User-Agent: Mozilla/5.0
(Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
Response
HTTP/1.1 200 OK
Server: Apache/2.4.29 (Ubuntu)
Content--Length: 61
Connection: Kep-Alive
Content-Type: text/html
<!doctype html>
<html>
<head>
</head>
<body>
</body>
</html>
블로그의 정보
study
Gerberaa