Code example for HttpURLConnection

Methods: setConnectTimeout, setDoInput, setDoOutput, setReadTimeout, setRequestMethod, setRequestProperty, setUseCaches