I need some help to understand api and special char; i had trouble with xml content, now it is with strings
my API controller
[Route("Coordonnee/BySite/{siteCode}")]
[HttpGet]
public List<Coordonnee> GetDdpCoordonneeBySite(string siteCode)
I call it with HttpClient in C# programm like below
HttpResponseMessage response = _getClient.GetAsync($"{uri}/{id}").Result;
var respResult = string.Empty;
if (response.IsSuccessStatusCode)
respResult = response.Content.ReadAsStringAsync().Result;
return respResult;
it works as long my SiteCode does not contains any special; if i put "TT+T" then gets Urlencoded like "TT&20&T" and the api is not called
Can someone explain me ? is it the controller ? or the call thanks;
Update : I test it also with swagger page : T+T in the param give this URI, it break the route and api is not called http://localhost:8085/Api/Ddp/Coordonnee/BySite/T%2BT
From my code, allways 404 not found, with or without UrlEncode...it is the same