How To Get Or Retrieve The Response URL From WebRequest Object Using C#
The solution is to get the ResponseUri from the response object. //domain url: http://www.htcatalogs.com.au //response url: http://www.htcatalogs.com.au/2012/dailylistings/ WebRequest request = WebRequest.Create( "http://www.rmwilliams.com.au" ); HttpWebResponse resp = HttpWebResponse)request.GetResponse(); string ur = resp.ResponseUri.ToString(); Console.Write(ur);