Web Page Downloader



I want to write a program that downloads web pages and replaces all
the relative URLs with absolute ones

EX. files/banner.jpg gets Replaced by http://www.mysite.com/files/banner.jpg

Where are the locations in which I would have to look to find a url
that needs to be replaced?
.