Code example for HttpURLConnection

Methods: connect, disconnect, getInputStream, setDoInput