I have a URL and am using an HttpWebRequest to connect to the web and
download the page. When I have the page contents I use RegEx and search the
page for any <a href=> links. The links usually contain something like
"./blah/mypage.html". What I need to do is take the original URL and
combine it with what I found in the href. So if my original URL is
http://www.mysite.com?var=something&blah=2 and then I combine it with what
is shown above - the result I want to see is
http://www.mysite.com/blah/mypage.html
Is there a class that can do this?
TIA
Brian
George Ter-Saakov - 04 Sep 2007 21:19 GMT
Uri has 2 constructors
One that takes string http://www.mysite.com/blah/mypage.html another one
that takes string and parent.
So first you create Uri from original Uri and then create second Uri with
constructor that takes first one as a parent.
George.
>I have a URL and am using an HttpWebRequest to connect to the web and
> download the page. When I have the page contents I use RegEx and search
[quoted text clipped - 10 lines]
> TIA
> Brian