Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 1.22 KB

21_12_03_TIL.md

File metadata and controls

20 lines (18 loc) · 1.22 KB

Spring | Spring Boot

Spring Spring Boot

HTTP - GET Method

  • URL을 통해 Data가 전송된다.
  • URL을 통해 Data가 전송되기 때문에 보안성이 떨어진다.
  • URL을 통해 Data를 전송하기 때문에 용량이 한정적이다.
  • 캐싱이 가능하기 때문에 접근했던 정보에 대해 다시 접근할 때 빠르게 접근할 수 있다.

HTTP - POST Method

  • URL이 아닌 HTTP Request Body를 통해 Data가 전송된다.
  • Request의 유형은 Content-Type Header(MIME Type)로 표현한다.
    • application/x-www-form-urlencoded
      • "&"로 구분되며, "="기호로 이루어진 key-value tuple로 인코딩되는 형식
      • Alphabet을 제외한 문자들은 percent encoded로 인코딩된다.(Binary Data에 사용하기에 적절하지 않다.)
    • multipart/form-data
      • 여러가지의 data 유형을 전송하기 위한 방식
      • ex) application/x-www-form-urlencoded, image/jpeg
    • MIME Type List