REST error-The request contain entity body but no Content-Type header.The infered media type application/octet-stream is not support for this resource
问题 I'm trying to send POST request. While sending via POSTMAN all goes well, then I try to send it by C# code: ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; var client = new RestClient(MY-URL); var request = new RestRequest(Method.POST); request.Credentials = new System.Net.NetworkCredential(ServerUsername, Password); request.AddHeader("Cache-Control",