Thanks, but no Address property for HttpWebRequest
On Jun 19, 12:40 pm, Cerebrus <[email protected]> wrote: > HttpWebRequest.Address property ? > > On Jun 19, 5:45 am, netdev1 <[email protected]> wrote: > > > How can we extract a final destination url from code using the > > httprequest object after a redirect? > > > sample: > > > string url = "http://url1.com"; > > > //url1.com re-directs to url2. How can we get the url for url2 in > > code? > > > WebRequest obj1 = System.Net.HttpWebRequest.Create(url); > > obj = obj1.GetResponse(); > > using (StreamReader sr = new StreamReader > > (obj.GetResponseStream())) > > { > > r = sr.ReadToEnd(); > > sr.Close(); > > } > > > Thank you.
