develooper Front page | perl.libwww | Postings from September 2001

Inconsistencies between URI::URL and MSIE relative URLs

Thread Next
From:
Ed .
Date:
September 30, 2001 09:59
Subject:
Inconsistencies between URI::URL and MSIE relative URLs
Message ID:
F312qlCOIJXxpHhpypc00004c67@hotmail.com
Hi everyone,

The code given below shows inconsistencies between URI::URL and MSIE 
relative URLs.

Regards,
Ed

p.s. I am not on the list, so please Cc: me if you have any questions.

use URI::URL qw(url);
my $BASE = 'http://localhost/file.html';
print url("#xx", $BASE)->abs, "\n";
print url("x.html", $BASE)->abs, "\n";
print url("", $BASE)->abs, "\n";
    # ^^^ in my view should produce ".../", i.e. the dir
print url("?x=1", $BASE)->abs, "\n";
    # ^^^ currently makes a link to dir BUT MSIE adds to existing URL,
    # as it does with '#'


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About