Code example for HttpURLConnection

Methods: connect, getInputStream, getOutputStream, setDoInput, setDoOutput, setRequestMethod