Code example for URLConnection

Methods: connect, getInputStream, setConnectTimeout, setReadTimeout