I am making a get request through postman
then select the value and right click the value chose EncodeURIComponent
then you will get encoded parameter
You can select the text and right click it to get the option to encode the value.
This will encode the value properly and it will be received in your C# application as expected.
CodePudding user response:
As people mentioned in other answers, it's encoding issue. Alternatively you could use [FromBody] and then just put your string in body request part of postman
public IHttpActionResult GetDescifrarCusResponse( [FromBody] string cus = null ) {
return Ok (ExecGetDescifrarCusResponse(cus));
//return Ok();
}