how to get the absolute uri path (http://localhost/project/index.html
instead of http://localhost
).
WebRequest req=WebRequest.Create("h ttp://localhost");
. . . Console.WriteLine("absolute URL = " resp.ResponseUri)
here last line returns http://local host but I want the exact URL path that is http://localhost/index.html