x-www-form-urlencoded1 [Content-Type] x-www-form-urlencoded 을 지원하는 API ASP.NET Web API 는 POST 의 경우 기본적으로 application/json 의 Content-Type 을 지원하도록 설정되어 있다. 이것을 x-www-form-urlencoded 의 Content-Type 을 지원하는 API 로 변경하기 위해서는 아래와 같은 Attribute 를 사용하여 처리할 수 있습니다, [HttpPost("GetAccessToken")] [Consumes("application/x-www-form-urlencoded")] public ResponseModel GetAccessToken([FromForm] Authentication authModel) { ... } 여기에서 중요한 부분은 [Consumes("application/x-www-form-urlencoded.. 2023. 12. 3. 이전 1 다음