Code example for URLConnection

Methods: getContentLength, getInputStream