Code example for HttpURLConnection

Methods: addRequestProperty, connect, setConnectTimeout, setDoInput, setReadTimeout, setRequestMethod, setUseCaches