Re: checklink: Usually the sign of a malformed URL that cannot be parsed by the server

On Wed, 16 Apr 2003, Martin RODOT wrote:

> trying to check :

So this relates to rather than the
validator. It took me some time to realize this. It's nice to have a link
checker, but it's conceptually quite different from a validator.
Generally, validation should be carried out first. (Your test document is
invalid under any HTML DTD, since it lacks the required title element.) In
this case however, it's really the link URL that is the problem:

> I get an error : "Usually the sign of a malformed URL that cannot be parsed by the server."
> There is a "require" and relative paths, but AFAIK, there is no error  and the page can be displayed properly with the explorers I
> tried.

The href attribute value on the test page is
which does not comply with URL specifications, when the base address is The relative URL
would correspond to the absolute URL
does not correspond to anything, since it there is just one path segment
to be removed in the base address, and ../../ means removing two segments.

For an explanation of mapping relative URLs to absolute URLs, see
for an informal discussion and
for the formal rules.

Browsers apparently do error recovery and treat ../../test.html
effectively as ../test.html in this case. Or to put it in other
words, they start processing the relative URL and when faced with the
job of removing another segment, with nothing to remove, they stop
there and use the URL they've got so far. Lynx, for one, gives a warning
that probably tries to say this.

Jukka "Yucca" Korpela,

Received on Wednesday, 16 April 2003 06:46:49 UTC