I am trying to fetch an API REST response but the API's URL has an "?" in the URL (see example below).
HttpWebRequest request = WebRequest.Create("http://api.mydomain.com/news/?tag=sports") as HttpWebRequest;
Is there a way to escape this?
I tried Uri.EscapeUriString and HttpUtility.HtmlEncode but that is not working either.
Any ideas?
It seems like the "?" is breaking the API's URL. No. you should read the API's documentation to learn how to get sports category.