I am attempting to create a web request as following:
var request = (HttpWebRequest)WebRequest.Create("http://localhost/test/data./?format=json");
But I keep getting exception where the underlying issue is with remote server returning a 404 (Not found)
. I narrowed down the issue to the dot
after data
. If I remove it, everything works. However, dot
is part of the link and cannot be omitted. How can I fix this?
EDIT:
Solutions from Dots in URL causes 404 with ASP.NET mvc and IIS DO NOT work for me. I've tried slashes and config settings.
Please keep in mind that dots DO WORK inside the link but not at the end.