HTTP (Hyper Text Transfer Protocol) vs HTTPS (Hyper Text Transfer Protocol Secure)
http는 서버에서 데이터를 주고받을 수 있도록 정해둔 규약이다.
GET /api/hello HTTP/1.1
Host: localhost:8080
HTTP/1.1 200
Content-Type: text/plain;charset=UTF-8
Content-Length: 18
Date: Wed, 28 Jul 2021 10:28:04 GMT
Keep-Alive: timeout=60
Connection: keep-alive
hello spring boot!
위의 http 메시지처럼 첫줄, 헤더, 바디로 구성되며 헤더에 데이터에 대한 정보를 저장해 전송한다.
https 는 이 http에 SSL(Secure Socket Layer)라는 계층을 추가해 보안성을 더한 프로토콜이다.