Code example for HttpURLConnection

Methods: connect, getErrorStream, getInputStream, getOutputStream, setDoOutput, setRequestMethod, setRequestProperty