> >>No.  As BNF states in RFC 2396, escape by '%' is not allowed for hostport.
> >>So the implementation should not interpret '%33' as '3' when it appears
> >>in hostname or IP address, in any cases.
> >
> > You might already know but <draft-fielding-uri-rfc2396bis-07.txt>
> > allows %xx notation in host part.
>
> Really?

I believe so.  The following ABNF is extracted from Appendix A of
<draft-fielding-uri-rfc2396bis-07.txt> (Sep 2004).

    URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
    hier-part     = "//" authority path-abempty
                  / path-absolute
                  / path-rootless
                  / path-empty
    authority     = [ userinfo "@" ] host [ ":" port ]
      host        = IP-literal / IPv4address / reg-name
      reg-name    = *( unreserved / pct-encoded / sub-delims )
    pct-encoded   = "%" HEXDIG HEXDIG

<draft-duerst-iri-11.txt> (Nov 2004) also allows %xx notation in host
part.  The following ABNF is extracted from section 2.2 of it.

      IRI            = scheme ":" ihier-part [ "?" iquery ]
      ihier-part     = "//" iauthority ipath-abempty
                     / ipath-absolute
                     / ipath-rootless
                     / ipath-empty
      iauthority     = [ iuserinfo "@" ] ihost [ ":" port ]
      ihost          = IP-literal / IPv4address / ireg-name
      ireg-name      = *( iunreserved / pct-encoded / sub-delims )
      pct-encoded    = "%" HEXDIG HEXDIG

Regards,
Noritoshi Demizu

--------------------------------------------------------------------
IETF IPv6 working group mailing list
[EMAIL PROTECTED]
Administrative Requests: https://www1.ietf.org/mailman/listinfo/ipv6
--------------------------------------------------------------------

Reply via email to