Code example for HttpURLConnection

Methods: connect, setConnectTimeout, setReadTimeout, setRequestProperty, setUseCaches