Archive for the 'Web' Category

December
9th 2008
Normalizer of Web Pages, Qualifier of URLs

Posted under Open Source & Web

Relative paths look like /images/filename.jpeg, explaining the relationship between the current location and the resource.  Fully qualified paths are complete addresses, and look like http://domain.com/images/filename.jpg.

Sometimes you need to translate between the two.  Think of absolute urls as the third normal form of the web.

The complete solution has 138 lines in two classes, but this includes fetching the content from the internet.  Filling in a host name and path for each relative link is easy. You can download the full implementation

The juicy bits are below: Continue Reading »

1 Comment »