validate that URI is valid http URI
- by Alfred
Hi all,
My problem:
First of hopefully this is not a
duplicate, but I could not find the
right answer(right away). I would like
to validate that an URI(http) is valid
in Java. I came up with the following
tests but I can't get them to pass.
First I used getPort(), but then
http://www.google.nl will return -1
on getPort(). This…