Use of java.net.URLConnection is asked about pretty often here, and the Oracle tutorial is too concise about i