Post AWBs

I am getting the following response: Response status code does not indicate success: 401 (Access Denied). using as credentials: HttpContent content = new FormUrlEncodedContent(postData); content.Headers.ContentType = new MediaTypeHeaderValue("application/json"); var queryString = HttpUtility.ParseQueryString(string.Empty); HttpClient httpClient = new HttpClient(); httpClient.BaseAddress = new Uri("https://urgentcargus.azure-api.net/api/Awbs?" + queryString); httpClient.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{ffe702d5fa7c4721bd4929f43da261b3}"); HttpResponseMessage myResponse = httpClient.PostAsync(httpClient.BaseAddress, content).Result; myResponse.EnsureSuccessStatusCode(); Thank you


You're not signed in. Please sign-in to report an issue or post a comment.