URLConnectionExample
-- making a URL connection and getting information from it.
To see this example in action:
Compile the Java source file, URLConnectionExample.java:
javac URLConnectionExample.java
Run the class:
java URLConnectionExample
The source.