Problem with call via asp.net URL

0

Someone could give me a light? I need to receive a call no matter what type of service it will only do this, where it will receive a URL in the old way so

link

The problem is, the url can anyway come up with any special characters, and I need to bypass the URL security system to be able to accept any kind of URL that might have come ... some light?

  // GET api/values/5
    [Route("api/values/{caminho}")]
    //[AcceptVerbs("GET")]
    public RedirectResult Get( string caminho)
    {
        string uri = Request.RequestUri.ToString();


        indeBanco = caminho.IndexOf("db");
        banco = caminho.Substring(indeBanco + 3);

    }
    
asked by anonymous 08.02.2018 / 12:45

0 answers