welcome 요청 -> index.html
method -> get post put delete
post와 put은 body 데이터가 있다.
body 데이터가 있으면, 반드시 Content-Type으로 body 데이터를 설명해야 한다.
mime 타입
text/plain
text/html
x-www-form-urlencoded
application/json
User-Agent : os 이름, 프로그램명
http 상태코드
10x : 서버가 바쁘니 좀 기다려 주세요
20x : 성공 O
30x : 리다이렉션 (상태코드 302, Location 키값)
40x : 클라이언트 요청 잘못함
50x : 서버 에러
쿠키
서버가 클라이언트에게 응답할 때 넘겨줌
Set-Cookie : key=value;key=value
클라이언트(브라우저)는 저 값을 브라우저에 저장
클라이언트는 매 요청시 쿠키를 가지고 서버에 요청한다
Cookie : key=value;key=value
Share article