I have a url with the pipe | symbol. When I call it from Httpclient it is getting encoded to %7C.
I read there was a 'dont escape' on the Uri in .NET but that has now been marked obsolete.
Is there anything I can do so that this | is not encoded on the request?
The url I am building is like:
HttpRequestMessage requestMessage = _httpClient.PrepareRequestMessage($"your/notstandardquerystringparam:term|otherterm", HttpMethod.Get, null, null);
var response = await _httpClient.SendAsync(requestMessage);
The service I am calling is failing when the | symbol is getting encoded. I need it passed to the service as the actual | symbol