728x90
반응형
Content-Type = application/json; Header에 포함 하여 사용할 경우
The request contains an entity body but no Content-Type header. The inferred media type 'application/octet-stream' is not supported for this resource.
위와 같은 오류가 발생한다면
Content-Type을 application/json;charset=UTF-8로 설정하여 사용
728x90
반응형
'프로그래밍' 카테고리의 다른 글
[c#] request Headers Host, RequestUri 변경 하기 (0) | 2021.07.04 |
---|---|
[c#] Web Api System.Web.Http AuthorizeAttribute 이용시 Bearer Token CustomAuthorize 구현 (0) | 2021.07.02 |
[C#] ASP.NET Web Api Controller 작업시 json으로 반환 하기 (0) | 2021.06.24 |
[c# Asp.net] Web Api 보안을 위한 HMAC 인증 (0) | 2021.06.22 |
[C#] System.Net.WebException StatusCode, Response 처리 (0) | 2021.06.17 |
댓글