1
How to pass a URL to an API
public class HTTPController : ControllerBase
{
[HttpGet("URL={URL}")]
public JsonResult GETURL(string URL)
{
}
}
However when passing for example https://google.pt
this does not interpret as parameter
I tried to pass so "http%3A%2F%2Fgoogle.pt" but it does not work in the same
How are you doing?
– novic
http://localhost/HTTP/GETURL/URL=http://google.pt
– Amadeu Antunes
Forgot to ask controller? Guy put more information ...
– novic
is called http I’ve updated the code
– Amadeu Antunes
tried so but no localhost/HTTP/GETURL/URL=http%3A%2F%2Fgoogle.pt
– Amadeu Antunes