Code example for HttpURLConnection

Methods: connect, getOutputStream, setAllowUserInteraction, setDoInput, setDoOutput, setRequestMethod, setRequestProperty