patch1 C# HttpClient RestAPI Patch C# HttpClient RestAPI Patch public static async Task WDDCAsync(string bearer, string id, string val, bool isReturnResponseMessage = false) { //ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; // 인증 try { var cl = new HttpClient(); cl.BaseAddress = new Uri(BaseUrl); cl.Timeout = TimeSpan.FromSeconds(3); cl.DefaultRequestHeaders.Add("authorization", "Bearer " + .. 2020. 8. 4. 이전 1 다음