> For the complete documentation index, see [llms.txt](https://heunnajo.gitbook.io/mvc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://heunnajo.gitbook.io/mvc/undefined-1/http.md).

# HTTP 요청 데이터 - 개요

HTTP 요청 메시지를 통해 클라이언트에서 서버로 데이터를 전달하는 방법

주로 다음 3가지 방법을 사용한다.

1. GET - 쿼리 파라미터\
   /url?**username=hello\&age=20**\
   메시지 바디 없이, URL의 **쿼리 파라미터에 데이터를 포함해서 전달⭐️**\
   ex) 검색, 필터, 페이징등에서 많이 사용하는 방식
2. POST - HTML Form\
   ⭐️**content-type: application/x-www-form-urlencoded**\
   ⭐️**메시지 바디에 쿼리 파리미터 형식으로 전달** **username=hello\&age=20**\
   ex) 회원 가입, 상품 주문, HTML Form 사용\
   \=>GET, POST 방식의 메시지에서 알수 있듯이 들어가는 데이터가 같아 호환이 가능하다!
3. HTTP message body에 데이터를 직접 담아서 요청
