Code example for HttpURLConnection

Methods: connect, disconnect, getInputStream, setConnectTimeout, setReadTimeout, setRequestMethod