Code example for HttpURLConnection

Methods: addRequestProperty, setConnectTimeout, setDoInput, setReadTimeout, setRequestMethod