Hi Nickg,
They're good examples of canonicalization and would be useful on a web
browser but for the purposes of GSB I think they're unnecessary
overhead (would have to store a list of standard ports etc) as
obviously when we do a lookup we don't use the ports as such. (I think
the reason the port example is even in there is just to ensure that
the client doesn't go crazy when someone adds a port to the end of
their URL!)
But yeah in my opinion, great for a web browsers, probably unnecessary
for GSB clients.
--Sam
On May 14, 9:51 pm, nickg <
ni...@client9.com> wrote:
> Hello,
>
> The GSB V2 API has a good test suite for URL canonicalization.
> However it only has one example of a host-port combo:
>
> Canonicalize("
http://www.gotaport.com:1234/") = "
http://www.gotaport.com:1234/";
>
> Granted the port isn't used in computing hashes and prefixes, it still
> might be good to have more tests, especially for the cases of port 80
> and port 443:
>
> Canonicalize("http://www.google.com:/) = "
http://www.google.com/" // missing port
> Canonicalize("
http://www.google.com:80/) = "
http://www.google.com/" // explicit standard port
> Canonicalize("
https://www.google.com:443/) = "
https://www.google.com/" // explicit standard port