Code example for HttpURLConnection

Methods: addRequestProperty, setConnectTimeout, setReadTimeout