W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > December 2007

Re: Preprocessor supported protocols

From: Sean Owen <srowen@google.com>
Date: Mon, 17 Dec 2007 19:42:45 -0500
Message-ID: <e920a71c0712171642y2606cc2y894a5097bfd50525@mail.gmail.com>
To: "Herwig Feichtinger" <hf@isdn-capi.de>
Cc: public-mobileok-checker@w3.org

Thank you, I have committed changes into CVS which should address this.


On Dec 17, 2007 9:03 AM, Herwig Feichtinger <hf@isdn-capi.de> wrote:
> Hello all,
> Sean wrote on Mon, 3 Dec 2007:
> >If there is no colon in the URI, assume it is an "http://" URI and
> >proceed that way. If there is a colon, parse the part before the colon
> >and use that as the protocol.
> This is how the default http protocol is implemented in some browsers,
> but unfortunately, it is not very smart. It works for simple URIs like
> www.example.com, but if you add a port number to it like
> www.example.com:81 then www.example.com will be treated as the protocol
> and 81 as the host name. Pretty weird.
> My proposal would be this little modification:
> If there is no colon in the URI before the first dot, assume that it is
> an "http://" URI...
> (For non-local URIs, there will be always at least one dot, so this
> should work for all realistic scenarios. - And sorry for my late
> response.)
> Cheers
> Herwig Feichtinger
Received on Tuesday, 18 December 2007 00:43:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:21:19 UTC