[Spring Boot] 1. HTTP 프로토콜

귤's avatar
Mar 16, 2025
[Spring Boot] 1. HTTP 프로토콜
welcome 요청 -> index.html
method -> get post put delete
post와 put은 body 데이터가 있다. body 데이터가 있으면, 반드시 Content-Type으로 body 데이터를 설명해야 한다.
mime 타입 text/plain text/html x-ww-from-urlencoded application/json
User-Agent: os 이름, 프로그램 명
notion image
http 상태 코드 10x -> 기다려 나 좀 바빠 20x -> 성공 30x -> redirection (리다이렉션) (상태 코드와 Loccation 키 값) 40x -> 너(클라이언트) 요청 잘 못 했는데? - 10 자 이내로 적기 50x -> 서버 에러
서버가 클라이언트에게 응답할 때!! Set Cookie : key=value;key=value 클라이언트(브라우저)는 쿠키 값을 브라우저 저장한다. 클라이언트 요청시마다 쿠키를 가지고 서버로 요청한다. Cookie : key=value;key=value
Share article

gyul