You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Julio S. G." <ju...@gmail.com> on 2007/01/08 18:32:54 UTC

Underscore problem.

   Hello,

   I've been trying to validate an URL that hostname contains a
underscore character and it returns "false" indicating that this URL
is invalid but it´s seems to me that this is not correct (according to
RFC 2396 section 2.2)
   I'm using the 1.3.1 version and trying to validate any URL like
"http://www.abc_abc.com/"
   Thank you,

Julio

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: Underscore problem.

Posted by "Julio S. G." <ju...@gmail.com>.
You're right.
Thanks a lot.

On 1/8/07, sebb <se...@gmail.com> wrote:
> 3.2.2. Server-based Naming Authority
>
> shows that "_" is not allowed in a hostname
>
> On 08/01/07, Julio S. G. <ju...@gmail.com> wrote:
> >   Hello,
> >
> >   I've been trying to validate an URL that hostname contains a
> > underscore character and it returns "false" indicating that this URL
> > is invalid but it´s seems to me that this is not correct (according to
> > RFC 2396 section 2.2)
> >   I'm using the 1.3.1 version and trying to validate any URL like
> > "http://www.abc_abc.com/"
> >   Thank you,
> >
> > Julio
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: Underscore problem.

Posted by sebb <se...@gmail.com>.
3.2.2. Server-based Naming Authority

shows that "_" is not allowed in a hostname

On 08/01/07, Julio S. G. <ju...@gmail.com> wrote:
>   Hello,
>
>   I've been trying to validate an URL that hostname contains a
> underscore character and it returns "false" indicating that this URL
> is invalid but it´s seems to me that this is not correct (according to
> RFC 2396 section 2.2)
>   I'm using the 1.3.1 version and trying to validate any URL like
> "http://www.abc_abc.com/"
>   Thank you,
>
> Julio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: Underscore problem.

Posted by Martin Cooper <ma...@apache.org>.
On 1/8/07, Julio S. G. <ju...@gmail.com> wrote:
>
>    Hello,
>
>    I've been trying to validate an URL that hostname contains a
> underscore character and it returns "false" indicating that this URL
> is invalid but it´s seems to me that this is not correct (according to
> RFC 2396 section 2.2)


An underscore might be valid as part of a URI, but my understanding is that
it's illegal as part of a domain name.

--
Martin Cooper


   I'm using the 1.3.1 version and trying to validate any URL like
> "http://www.abc_abc.com/"
>    Thank you,
>
> Julio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>