Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19458

Re: (extra) parsing (and verifying of) URL's via java.net.URI ...

From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: (extra) parsing (and verifying of) URL's via java.net.URI ...
Date 2012-10-21 09:43 -0700
Organization A noiseless patient Spider
Message-ID <k618oh$u11$1@dont-email.me> (permalink)
References <k611qi$ftq$1@speranza.aioe.org>

Show all headers | View raw


On 10/21/2012 7:45 AM, qwertmonkey@syberianoutpost.ru wrote:
> ~
>   as stated in the API
> ~
>   http://docs.oracle.com/javase/7/docs/api/java/net/URI.html


Relating this to your subject title, URIs are not URLs.  You can't 
really "verify" a URI, they're just strings.


> ~
>   this would be an extra feature, but it would be nice if as part of the API
>   you could tell apart what is a TLD, as well as suffixes that some regional
>   registrar authorities mark as not publicly available.


Why?  Just send info to the host name.  If it gets there it's correct. 
Otherwise send an error message to the user.

Plus URLs may be relative.  There might be no TLD in the string at all.


> ~
>   Those parsing issues are important in use cases in which you want to know
>   what is in a host name:


What makes you think this information is important?  Why would you care? 
  Just use the hostname as given.


Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

(extra) parsing (and verifying of) URL's via java.net.URI ... qwertmonkey@syberianoutpost.ru - 2012-10-21 14:45 +0000
  Re: (extra) parsing (and verifying of) URL's via java.net.URI ... markspace <-@.> - 2012-10-21 09:43 -0700
  Re: (extra) parsing (and verifying of) URL's via java.net.URI ... Arne Vajhoej <arne@vajhoej.dk> - 2012-10-21 13:53 -0400
  Re: (extra) parsing (and verifying of) URL's via java.net.URI ... Roedy Green <see_website@mindprod.com.invalid> - 2012-10-23 04:29 -0700
  Re: (extra) parsing (and verifying of) URL's via java.net.URI ... paul.cager@googlemail.com - 2012-10-23 05:34 -0700

csiph-web