URI::URL parsing 'http:path'

Clinton Wong (clintdw@netcom.com)
Wed, 1 Jan 1997 23:30:04 -0800 (PST)


Hi,

Here's a strange one:

my $obj = (new URI::URL 'http:stuff.html', 'http://foo.com/')->abs();

This results in $obj having an absolute URL of 'http:stuff.html'.
But if you were to reference 'http:stuff.html' from a page on
foo.com and click on it, Netscape Navigator and lynx both think
the absolute URL should be: 'http://foo.com/stuff.html'.

Which one is correct?

Regards,
Clinton