You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
HTTP 헤더1 - 일반 헤더
1️⃣ HTTP 헤더 개요
✅HTTP 헤더의 용도
출처 - https://developer.mozilla.org/ko/docs/Web/HTTP/Messages
헤더 분류
그런데 HTTP 표준이 2014년에 RFC7230~ 7235에 등장으로 많은 변화가 일어남
✅ 변화
➡️message body - RFC7230(최신)
2️⃣ 표현
✅Content-type - 표현 데이터의 형식 설명
✅Content-Encoding - 표현 데이터 인코딩
✅ Content-Language - 표현 데이터의 자연 언어
✅ Content-Length - 표현 데이터의 길이
3️⃣ 콘텐츠 협상
✅ 클라이언트가 선호하는 표현 요청
Accept : 클라이언트가 선호하는 미디어 타입 전달
Accpet-Charset : 클라이언트가 선호하는 문자 인코딩
Accept-Encoding : 클라이언트가 선호하는 압축 인코딩
Accept-Language : 클라이언트가 선호하는 자연 언어
협상 헤더는 요청시에만 사용
ssets/56623911/ee7e9e1e-2911-494c-a109-85abf88e3798">
✅협상과 우선순위1 - Quality Values(q)
✅ 협상과 우선순위2 - Quality Values(q)
구체적인 것이 우선한다.
Accept: text/, text/plain, text/plain;format=flowed, /
text/plain;format=flowed
text/plain
text/*
/
✅협상과 우선순위3 - Quality Values(q)
4️⃣ 전송 방식
5️⃣ 일반 정보
✅단순 전송
✅압축 전송
✅분할 전송
✅ 전송
From: 유저 에이전트의 이메일 정보
Referer: 이전 웹 페이지 주소
User-Agent: 유저 에이전트 애플리케이션 정보
537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36
Server: 요청을 처리하는 오리진 서버의 소프트웨어 정보
Date: 메시지가 생성된 날짜
6️⃣ 특별한 정보
✅ 요청한 호스트 정보(도메인)
✅Host - 요청한 호스트 정보(도메인)
✅Location - 페이지 리다이렉션
(리다이렉트)
가리킴
✅Allow - 허용 가능한 HTTP 메서드
✅Retry-After - 유저 에이전트가 다음 요청을 하기까지 기다려야 하는 시간
7️⃣ 인증
✅Authorization - 클라이언트 인증 정보를 서버에 전달
Authorization: Basic xxxxxxxxxxxxxxxx
✅WWW-Authenticate
title="Login to "apps"", Basic realm="simple"
8️⃣ 쿠키
✅ 쿠키 - 로그인
🔗출처
All reactions