- Hyper Text Transfer Protocol
- Header, Body(본문, Payload, content)로 구성
HTTP의 헤더
- 헤더는 Key : Value 형식
- 한글x. 쿠키넣을때 인코딩해야함. encodeURIComponent(’한글’)
- Get / users HTTP/1.1
- Host: aaaa.com
- set-Cookie:key=value,Domain=aaaa.com
- Accept(컨텐츠 협상/서버주도 협상)
- MIME Type 대분류/확장자
- image/png, image/jpeg, application/json, text/html
- 우선순위 q=0 ~ q=1
- Referer(referrer)
- 이전페이지를 알 수 있음.
- referrer policy( 개인정보 이슈. 이전 도메인과 지금 도메인다르면 referrer안알랴줌!!)
- 커스텀헤더 x-
Location >> 리다이렉트