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

The source.