Code example for URLConnection

Methods: connect, getContentEncoding, getContentLength, getContentType, getInputStream, getLastModified