W3C home > Mailing lists > Public > public-webapi@w3.org > August 2007

Re: XHR: definition of same-origin

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 29 Aug 2007 09:46:55 -0500
Message-ID: <46D586DF.9040609@mit.edu>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
CC: Maciej Stachowiak <mjs@apple.com>, "Web API WG (public)" <public-webapi@w3.org>

Bjoern Hoehrmann wrote:
> The URLs are equivalent, if you send different Host headers, that's your
> choice, but it's neither required nor otherwise necessary. As an example
> Internet Explorer 6 will not send the default port in the Host header

For what it's worth, neither will Gecko.  It will also not show it in the URL 
bar, etc.  The URI object creation process performs various normalizations, and 
one of those is removing the port part if it's the default port for the 
protocol.  So once you've gone from a string to a URI object in Gecko, only 
non-default ports are listed explicitly.

-Boris
Received on Wednesday, 29 August 2007 14:48:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:58 GMT