Friday, March 9, 2012

Get Response URL from WebRequest

Code:
//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); 

0 comments:

Post a Comment