Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32060

Converting a relative link to an absolute link

$
0
0
I am reading a web page with

HttpWebRequest
site = (HttpWebRequest)WebRequest.Create(link);               

HttpWebResponse response = (HttpWebResponse)site.GetResponse();

Stream dataStream = response.GetResponseStream();

StreamReader read = newStreamReader(dataStream);

String data = read.ReadToEnd();


I am parsing the page out to locate some download links but the download links are relative links. I was wondering what the correct method would be to convert it to an absolute link?

Thanks


Viewing all articles
Browse latest Browse all 32060

Trending Articles