Code example for HttpURLConnection

Methods: addRequestProperty, connect, getResponseCode, setConnectTimeout, setDoInput, setInstanceFollowRedirects, setReadTimeout, setRequestMethod, x 1