I am calling a post method from one API to other in C# and getting a 404 Not Found error. When i look at the request message the request Uri looks good but Absolute Uri and Absolute path has some special characters inserted
- My request Uri - https://services.abc.com:1232/something/v1/abc/add
- My Absolute Uri - https://services.abc.com:1232/something/v1/%E2%80%8Babc%E2%80%8B/add
This is how im calling the end point
var baseUrl = https://services.abc.com:1232/something;
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, $"{baseUrl}/v1/abc/add");
requestMessage.Content = new StringContent(JsonConvert.SerializeObject(request), Encoding.UTF8, "application/json");
Task<HttpResponseMessage> response = client.SendAsync(requestMessage);