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


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

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

Received by 10.224.180.141 with SMTP id bu13mr3464595qab.2.1350995681915; Tue, 23 Oct 2012 05:34:41 -0700 (PDT)
Received by 10.52.93.229 with SMTP id cx5mr1916291vdb.19.1350995681892; Tue, 23 Oct 2012 05:34:41 -0700 (PDT)
Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!x14no5357957qar.0!news-out.google.com!r17ni57592152qap.0!nntp.google.com!x14no5357954qar.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Tue, 23 Oct 2012 05:34:41 -0700 (PDT)
In-Reply-To <k611qi$ftq$1@speranza.aioe.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=81.94.213.9; posting-account=VsWLXwoAAAB13M2Ptt5-Bo-K_zCx-zyw
NNTP-Posting-Host 81.94.213.9
References <k611qi$ftq$1@speranza.aioe.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <3d5444c8-b2bf-40d9-93f1-7e9390f1a24b@googlegroups.com> (permalink)
Subject Re: (extra) parsing (and verifying of) URL's via java.net.URI ...
From paul.cager@googlemail.com
Injection-Date Tue, 23 Oct 2012 12:34:41 +0000
Content-Type text/plain; charset=ISO-8859-1
X-Received-Bytes 1697
Xref csiph.com comp.lang.java.programmer:19482

Show key headers only | View raw


On Sunday, October 21, 2012 3:45:43 PM UTC+1, qwert...@syberianoutpost.ru wrote:
>  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.

I think markspace's advice is best as there is no foolproof way to determine if a string is a host name or a domain name (even if you look at DNS "A" / "AAA" records).

But maybe http://publicsuffix.org/list/ (was https://wiki.mozilla.org/TLD_List) will help you do whatever it is you want to do.

Back to comp.lang.java.programmer | Previous | NextPrevious 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