Code example for URLConnection

Methods: getInputStream, setConnectTimeout, setReadTimeout